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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x138
mov eax, dword [0x522104]
xor eax, esp
mov dword [esp + 0x134], eax
cmp dword [ecx + 0x4c], 0
push esi
push edi
mov dword [esp + 0x14], ecx
mov edi, 0x78
je 0x480786
cmp byte [ecx + 0x26], 0
jne 0x480786
cmp byte [ecx + 0x2a], 0
jne 0x480786
mov edx, dword [ebp + 8]
test edx, edx
jne 0x48049c
mov eax, dword [ecx + 0x40]
lea edx, [esp + 0x40]
mov ecx, dword [ecx + 0x44]
xorps xmm0, xmm0
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x14]
mov dword [ebp + 8], edx
movlpd qword [esp + 0x40], xmm0
mov dword [esp + 0x48], eax
cmp dword [edx + 0xc], 0
ja 0x4804af
cmp dword [edx + 8], 0x8000
jbe 0x48079e
test byte [ecx + 0x2e], 2
je 0x4804d0
mov eax, 0xb7
pop edi
pop esi
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.004a4c5b
mov esp, ebp
pop ebp
ret 8
mov edi, dword [0x529c74]
mov esi, dword [edx + 4]
dec edi
mov eax, dword [edx]
mov dword [esp + 0xc], 0
test esi, esi
ja 0x48051d
jb 0x4804ee
cmp eax, edi
ja 0x48051d
not dword [esp + 0xc]
add eax, edi
not edi
adc esi, 0
add eax, dword [edx + 8]
adc esi, dword [edx + 0xc]
and eax, edi
and esi, dword [esp + 0xc]
add eax, 0x8000
adc esi, 0
cmp esi, dword [ecx + 0x44]
jb 0x48051d
ja 0x480519
cmp eax, dword [ecx + 0x40]
jb 0x48051d
or byte [ecx + 0x2e], 2
mov eax, dword [ecx + 0x48]
test eax, eax
jne 0x48052e
mov edi, 0xa0
jmp 0x48061a
mov esi, dword [0x529bc0]
mov edi, 0x78
test esi, esi
je 0x480612
cmp byte [0x529c98], 0
jne 0x480612
cmp byte [eax + 5], 0
jne 0x480612
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x480612
cdq
xorps xmm0, xmm0
mov dword [esp + 0xbc], edx
mov edx, dword [ebp + 8]
mov dword [esp + 0xb8], eax
mov byte [esp + 0xc0], 0
mov dword [esp + 0xc1], 1
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 0xc5], eax
mov eax, dword [edx + 8]
mov dword [esp + 0xcd], eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0xcd], ecx
push eax
push 0
push 0
push 0x19
lea eax, [esp + 0xcc]
movaps xmmword [esp + 0x64], xmm0
push eax
push 0xb2d601c0
push esi
mov dword [esp + 0x80], 0
mov dword [esp + 0x5c], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4805ec
xor edi, edi
jmp 0x48060b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, 1
movzx eax, byte [0x529c98]
cmp edi, 0x32
cmove eax, ecx
mov byte [0x529c98], al
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 8]
test edi, edi
je 0x480786
mov eax, dword [ecx + 0x3c]
xor esi, esi
mov dword [esp + 0xc], eax
mov eax, dword [ecx + 0x50]
mov dword [esp + 0x18], esi
mov esi, dword [ecx + 0x38]
xor ecx, ecx
add eax, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], eax
adc ecx, dword [esp + 0xc]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x38], 0
nop dword [eax]
mov eax, dword [edx]
mov esi, eax
add esi, dword [edx + 8]
mov ecx, dword [edx + 4]
mov dword [esp + 0x24], esi
mov esi, dword [edx + 0xc]
adc esi, ecx
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x18]
cmp ecx, dword [esp + 0x2c]
ja 0x48071d
jb 0x480681
cmp eax, dword [esp + 0x28]
jae 0x48071d
mov edx, dword [esp + 0xc]
cmp dword [esp + 0x30], edx
mov edx, dword [ebp + 8]
jb 0x48071d
ja 0x4806a2
mov esi, dword [esp + 0x20]
cmp dword [esp + 0x24], esi
mov esi, dword [esp + 0x18]
jbe 0x48071d
cmp ecx, dword [esp + 0xc]
jb 0x4806b6
mov edx, dword [esp + 0x20]
ja 0x4806b2
cmp eax, edx
jbe 0x4806b6
sub eax, edx
jmp 0x4806c3
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 0x4c]
add eax, ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x30], eax
ja 0x4806ec
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
jb 0x4806e8
cmp eax, edx
jae 0x4806ec
sub edx, eax
jmp 0x4806f9
xorps xmm0, xmm0
movlpd qword [esp + 0x30], xmm0
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
sub ecx, edx
sub ecx, eax
mov dword [esp + esi*8 + 0x78], eax
mov eax, dword [esp + 0x14]
add ecx, dword [eax + 0x50]
mov dword [esp + esi*8 + 0x7c], ecx
inc esi
mov dword [esp + 0x18], esi
cmp esi, 8
jae 0x480786
mov edx, dword [ebp + 8]
test esi, esi
je 0x48076e
cmp esi, 1
jne 0x480730
cmp dword [esp + 0x7c], 0x8000
jbe 0x48079e
mov esi, dword [0x529be4]
mov edi, 0x78
test esi, esi
je 0x48076b
push 0
lea eax, [esp + 0x7c]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
mov ecx, esi
call dword [0x4ee33c]
call esi
test eax, eax
je 0x480763
xor edi, edi
jmp 0x48076b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x38]
add edx, 0x10
inc eax
mov dword [ebp + 8], edx
mov dword [esp + 0x38], eax
cmp eax, 1
jb 0x480650
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.004a4c5b
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 0x13c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.004a4c5b
mov esp, ebp
pop ebp
ret 8