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

Disassembly:
sub esp, 0x74
mov edx, dword [eax + 0x1c]
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [eax + 0x14]
mov dword [esp + 0x1c], ecx
mov ecx, 1
cmp ecx, dword [eax + 0x10]
mov ecx, dword [esp + 0x88]
sbb eax, eax
neg eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x5c], eax
mov eax, dword [ecx]
mov ecx, dword [esp + 0x94]
or ecx, dword [esp + 0x98]
push edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x88], eax
je 0x402aa6
lea ecx, [eax + eax*4]
lea ebp, [edx + ecx*8 + 0x10]
jmp 0x40285b
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x88]
cmp eax, dword [esp + 0x20]
jae 0x402aa6
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 4]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ecx
mov eax, edi
add eax, ecx
mov ecx, ebx
adc ecx, dword [esp + 0x2c]
add eax, 0xffffffff
adc ecx, 0xffffffff
mov dword [esp + 0x44], ecx
mov ecx, dword [ebp]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 4]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x34], eax
mov eax, dword [ecx]
lea eax, [eax + eax*4]
mov ecx, dword [edx + eax*8 + 0x20]
mov edx, dword [edx + eax*8 + 0x24]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x98]
mov dword [esp + 0x48], ecx
xor eax, eax
xor ecx, ecx
or edx, dword [esp + 0x9c]
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], ebx
je 0x4029d7
jmp 0x4028e0
cmp ecx, dword [esp + 0x34]
ja 0x4029d7
mov edx, dword [esp + 0x30]
jb 0x4028f8
cmp eax, edx
jae 0x4029d7
mov ebx, eax
add ebx, 0x10
mov edi, ecx
adc edi, 0
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], edi
cmp edi, dword [esp + 0x34]
ja 0x402920
jb 0x402916
cmp ebx, edx
ja 0x402920
mov dword [esp + 0x14], 0x10
jmp 0x402926
sub edx, eax
mov dword [esp + 0x14], edx
mov edx, eax
add edx, dword [esp + 0x90]
mov edi, ecx
adc edi, dword [esp + 0x94]
add eax, dword [esp + 0x48]
mov dword [esp + 0x74], edi
adc ecx, dword [esp + 0x4c]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x70], edx
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x78], edi
call fcn.00402790
test eax, eax
je 0x402ab5
mov edx, dword [esi + 0x10178]
push 0
lea eax, [esp + 0x28]
push eax
push 0
push 0
push 0x20
lea ecx, [esp + 0x74]
push ecx
push 0x90074
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x402aca
mov edx, dword [esp + 0x98]
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x3c]
xor eax, eax
add dword [esi + 0x98], edi
adc dword [esi + 0x9c], eax
sub edx, edi
mov edi, dword [esp + 0x9c]
sbb edi, eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x98], edx
mov dword [esp + 0x9c], edi
or edx, edi
mov edi, dword [esp + 0x38]
jne 0x4028e0
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push 0
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x34]
push ecx
lea eax, [esi + 0x10188]
push edx
push eax
call fcn.00401950
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x94]
add edi, eax
adc ebx, ecx
push 1
mov dword [esp + 0x5c], edi
add edi, 0xffffffff
mov dword [esp + 0x60], ebx
adc ebx, 0xffffffff
push ebx
push edi
push ecx
push eax
lea eax, [esi + 0x10188]
push eax
call fcn.00401950
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x30]
push 2
push ecx
mov ecx, dword [esp + 0x34]
push edx
push eax
push ecx
call fcn.00401cb0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x90]
push edx
push 3
push ebx
push edi
push eax
push ecx
call fcn.00401cb0
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x58]
inc dword [esp + 0x88]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x8c]
inc dword [eax]
add ebp, 0x28
or ecx, dword [esp + 0x9c]
mov dword [esp + 0x90], edx
jne 0x402850
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret 0x18
mov eax, 1
mov dword [esi + 0x10138], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret 0x18
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
mov eax, esi
call fcn.00402100
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x74
ret 0x18