Function at 0x405c90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x10468
call fcn.00412cb0
mov eax, dword [0x42d0f0]
xor eax, esp
mov dword [esp + 0x10464], eax
mov eax, dword [esp + 0x10490]
mov ecx, dword [esp + 0x10494]
push ebp
mov ebp, dword [esp + 0x10474]
push esi
mov esi, dword [esp + 0x1047c]
push edi
mov edi, dword [esp + 0x10478]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
cmp esi, dword [edi + 0x17c]
jb 0x405d06
ja 0x405cec
cmp ebp, dword [edi + 0x178]
jb 0x405d06
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x10464]
xor ecx, esp
call fcn.00411002
add esp, 0x10468
ret
push ebx
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
lea esp, [esp]
push ebx
lea edx, [esp + 0x64]
push edx
mov edx, dword [edi + 0x20]
push 0x10010
lea eax, [esp + 0x70]
push eax
push 8
lea ecx, [esp + 0x6c]
push ecx
push 0x9006f
push edx
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x405d78
mov dword [esp + 0x50], ebx
jmp 0x405d91
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x50], eax
cmp eax, ebx
je 0x405d91
cmp eax, 0xea
jne 0x406054
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov edi, edx
add edi, dword [esp + 0x64]
mov eax, ecx
adc eax, dword [esp + 0x68]
cmp esi, eax
ja 0x40608d
jb 0x405db7
cmp ebp, edi
jae 0x40608d
mov esi, dword [esp + 0x10488]
or esi, dword [esp + 0x1048c]
jne 0x405dd5
mov dword [esp + 0x10488], edi
mov dword [esp + 0x1048c], eax
mov ebp, dword [esp + 0x64]
mov esi, dword [esp + 0x68]
mov eax, ecx
mov edi, edx
shrd edi, eax, 3
xor ebx, ebx
shr eax, 3
mov dword [esp + 0x54], ebx
mov byte [esp + 0x13], 1
mov dword [esp + 0x4c], 0x10000
test eax, eax
ja 0x405e15
jb 0x405e09
cmp edi, 0x10000
jae 0x405e15
mov dword [esp + 0x4c], edi
test edi, edi
jle 0x406005
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
lea ecx, [ecx]
cmp esi, dword [esp + 0x1048c]
ja 0x405ffb
jb 0x405e3c
cmp ebp, dword [esp + 0x10488]
jae 0x405ffb
cmp esi, dword [esp + 0x10484]
jb 0x405fd4
ja 0x405e58
cmp ebp, dword [esp + 0x10480]
jb 0x405fd4
movzx ecx, byte [esp + ebx + 0x74]
movzx edx, byte [esp + 0x13]
and ecx, edx
mov dword [esp + 0x1c], ecx
cmp esi, dword [eax + 0x14c]
jb 0x405e8c
ja 0x405e7a
cmp ebp, dword [eax + 0x148]
jb 0x405e8c
cmp esi, dword [eax + 0x154]
jb 0x405ed4
ja 0x405e8c
cmp ebp, dword [eax + 0x150]
jb 0x405ed4
cmp esi, dword [eax + 0x15c]
jb 0x405eb0
ja 0x405e9e
cmp ebp, dword [eax + 0x158]
jb 0x405eb0
cmp esi, dword [eax + 0x164]
jb 0x405ed4
ja 0x405eb0
cmp ebp, dword [eax + 0x160]
jb 0x405ed4
cmp esi, dword [eax + 0x16c]
jb 0x405ee7
ja 0x405ec2
cmp ebp, dword [eax + 0x168]
jb 0x405ee7
cmp esi, dword [eax + 0x174]
ja 0x405ee7
jb 0x405ed4
cmp ebp, dword [eax + 0x170]
jae 0x405ee7
cmp dword [esp + 0x104a8], 0
jne 0x405ee7
mov ecx, 1
mov dword [esp + 0x1c], ecx
test edi, edi
jne 0x405fb8
test ecx, ecx
je 0x405fc4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov ebx, ebp
sub ebx, eax
mov edi, esi
sbb edi, ecx
push edi
push ebx
push ecx
push eax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x238]
mov edx, dword [ecx + 0x34]
mov eax, dword [eax + 0x22c]
push edx
push 0
push 6
call eax
mov ecx, dword [esp + 0x104a0]
add esp, 0x1c
cmp dword [esp + 0x18], ecx
jb 0x405f7a
mov eax, dword [esp + 0x14]
ja 0x405f44
cmp eax, dword [esp + 0x10480]
jb 0x405f7a
cmp edi, dword [esp + 0x10494]
jb 0x405f7a
ja 0x405f58
cmp ebx, dword [esp + 0x10490]
jb 0x405f7a
cmp dword [esp + 0x1049c], 0
je 0x4060a8
mov edx, dword [esp + 0x18]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], esi
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov ecx, eax
or ecx, edx
je 0x405f9e
mov ecx, dword [esp + 0x24]
sub ecx, eax
mov eax, dword [esp + 0x28]
sbb eax, edx
cmp eax, edi
ja 0x405fc4
jb 0x405f9e
cmp ecx, ebx
jae 0x405fc4
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], esi
jmp 0x405fc4
test ecx, ecx
jne 0x405fc4
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], esi
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x54]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], edi
cmp byte [esp + 0x13], 0x80
jne 0x405fe7
inc ebx
mov byte [esp + 0x13], 1
mov dword [esp + 0x54], ebx
jmp 0x405feb
shl byte [esp + 0x13], 1
add ebp, 1
adc esi, 0
cmp ebx, dword [esp + 0x4c]
jl 0x405e20
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
jmp 0x406009
mov edi, dword [esp + 0x1c]
cmp dword [esp + 0x50], 0xea
jne 0x4060c2
add edx, dword [esp + 0x64]
adc ecx, dword [esp + 0x68]
cmp esi, ecx
ja 0x4060c2
jb 0x406031
cmp ebp, edx
jae 0x4060c2
cmp esi, dword [esp + 0x1048c]
ja 0x4060c2
jb 0x406049
cmp ebp, dword [esp + 0x10488]
jae 0x4060c2
mov edi, dword [esp + 0x20]
xor ebx, ebx
jmp 0x405d40
push 0x200
lea ecx, [esp + 0x10078]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.JkDefrag.exe_SystemErrorStr
mov eax, dword [edi + 0x238]
mov ecx, dword [eax + 0x30]
lea edx, [esp + 0x10080]
push edx
mov edx, dword [edi + 0x22c]
push ecx
push ebx
push 1
call edx
add esp, 0x1c
xor eax, eax
mov ecx, dword [esp + 0x10474]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00411002
add esp, 0x10468
ret
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x40614a
mov dword [ecx], eax
mov eax, dword [esp + 0x18]
mov dword [ecx + 4], eax
jmp 0x40614a
test edi, edi
jne 0x4061af
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov ebx, ebp
sub ebx, eax
mov edi, esi
sbb edi, ecx
push edi
push ebx
push ecx
push eax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x238]
mov edx, dword [ecx + 0x34]
mov eax, dword [eax + 0x22c]
push edx
push 0
push 6
call eax
mov ecx, dword [esp + 0x34]
add esp, 0x1c
cmp ecx, dword [esp + 0x10484]
jb 0x406179
ja 0x406117
mov edx, dword [esp + 0x14]
cmp edx, dword [esp + 0x10480]
jb 0x406179
cmp edi, dword [esp + 0x10494]
jb 0x406179
ja 0x40612b
cmp ebx, dword [esp + 0x10490]
jb 0x406179
cmp dword [esp + 0x1049c], 0
jne 0x406161
mov eax, dword [esp + 0x34]
test eax, eax
je 0x40614a
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [esp + 0x38]
test eax, eax
je 0x406157
mov dword [eax], ebp
mov dword [eax + 4], esi
mov eax, 1
jmp 0x40608f
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], esi
mov edx, dword [esp + 0x2c]
mov eax, edx
or eax, dword [esp + 0x30]
je 0x40619d
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
sub ecx, edx
sbb eax, dword [esp + 0x30]
cmp eax, edi
ja 0x4061b3
jb 0x40619d
cmp ecx, ebx
jae 0x4061b3
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], esi
jmp 0x4061b7
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x1049c], 1
jne 0x4061fb
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x48]
mov edi, ecx
or edi, esi
je 0x4061fb
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4061dc
mov dword [eax], ecx
mov dword [eax + 4], esi
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4061f1
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, 1
jmp 0x40608f
cmp dword [esp + 0x10498], 0
jne 0x40608d
mov ecx, edx
or ecx, eax
je 0x40608d
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x406220
mov dword [ecx], edx
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x38]
test eax, eax
je 0x406235
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov eax, 1
jmp 0x40608f