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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x138
mov eax, dword [0x51c100]
xor eax, esp
mov dword [esp + 0x134], eax
cmp dword [ecx + 0x4c], 0
push esi
push edi
mov dword [esp + 0x1c], ecx
mov edi, 0x78
je 0x47c228
cmp byte [ecx + 0x26], 0
jne 0x47c228
cmp byte [ecx + 0x2a], 0
jne 0x47c228
mov esi, dword [ebp + 8]
test esi, esi
jne 0x47c0cc
mov eax, dword [ecx + 0x40]
lea esi, [esp + 0x40]
mov ecx, dword [ecx + 0x44]
xorps xmm0, xmm0
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x1c]
mov dword [ebp + 8], esi
movlpd qword [esp + 0x40], xmm0
mov dword [esp + 0x48], eax
cmp dword [esi + 0xc], 0
ja 0x47c0df
cmp dword [esi + 8], 0x8000
jbe 0x47c3e4
mov dl, byte [ecx + 0x2e]
test dl, 2
je 0x47c102
mov eax, 0xb7
pop edi
pop esi
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.004a057b
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x5239f4]
mov edi, dword [esi + 4]
dec eax
mov dword [esp + 0x10], eax
mov eax, dword [esi]
mov dword [esp + 0x18], 0
test edi, edi
ja 0x47c15c
jb 0x47c125
cmp eax, dword [esp + 0x10]
ja 0x47c15c
add eax, dword [esp + 0x10]
not dword [esp + 0x10]
not dword [esp + 0x18]
adc edi, 0
add eax, dword [esi + 8]
adc edi, dword [esi + 0xc]
and eax, dword [esp + 0x10]
and edi, dword [esp + 0x18]
add eax, 0x8000
adc edi, 0
cmp edi, dword [ecx + 0x44]
jb 0x47c15c
ja 0x47c156
cmp eax, dword [ecx + 0x40]
jb 0x47c15c
or dl, 2
mov byte [ecx + 0x2e], dl
mov ecx, dword [ecx + 0x48]
test ecx, ecx
jne 0x47c16d
mov edi, 0xa0
jmp 0x47c260
mov edi, dword [0x523948]
mov eax, 0x78
test edi, edi
je 0x47c25a
cmp byte [0x523a10], 0
jne 0x47c25a
cmp byte [ecx + 5], 0
jne 0x47c256
mov ecx, dword [ecx]
cmp ecx, 0xffffffff
je 0x47c25a
mov eax, ecx
mov byte [esp + 0xc0], 0
mov ecx, dword [esi + 4]
xorps xmm0, xmm0
cdq
mov dword [esp + 0xb8], eax
mov eax, dword [esi]
mov dword [esp + 0xc5], eax
mov eax, dword [esi + 8]
mov dword [esp + 0xcd], eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0xc0], edx
push eax
push 0
push 0
push 0x19
lea eax, [esp + 0xcc]
mov dword [esp + 0xd5], 1
push eax
push 0xb2d601c0
push edi
mov dword [esp + 0xe9], ecx
movaps xmmword [esp + 0x70], xmm0
mov dword [esp + 0x80], 0
mov dword [esp + 0x5c], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x47c240
xor edi, edi
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.004a057b
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x32
jne 0x47c25a
mov byte [0x523a10], 1
jmp 0x47c260
mov edi, eax
jmp 0x47c260
mov edi, eax
test eax, eax
je 0x47c228
mov eax, dword [esp + 0x1c]
xor esi, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x38], 0
mov edx, dword [eax + 0x3c]
mov ecx, dword [eax + 0x38]
mov eax, dword [eax + 0x50]
add eax, ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], ecx
adc esi, edx
mov dword [esp + 0x28], eax
mov edx, dword [ebp + 8]
mov dword [esp + 0x2c], esi
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 + 0x10]
cmp ecx, dword [esp + 0x2c]
ja 0x47c363
jb 0x47c2c3
cmp eax, dword [esp + 0x28]
jae 0x47c363
mov edx, dword [esp + 0x20]
cmp dword [esp + 0x30], edx
mov edx, dword [ebp + 8]
jb 0x47c363
ja 0x47c2e4
mov esi, dword [esp + 0x18]
cmp dword [esp + 0x24], esi
mov esi, dword [esp + 0x10]
jbe 0x47c363
cmp ecx, dword [esp + 0x20]
jb 0x47c2f8
mov edx, dword [esp + 0x18]
ja 0x47c2f4
cmp eax, edx
jbe 0x47c2f8
sub eax, edx
jmp 0x47c305
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 0x4c]
add eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x30], eax
ja 0x47c32e
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
jb 0x47c32a
cmp eax, edx
jae 0x47c32e
sub edx, eax
jmp 0x47c33b
xorps xmm0, xmm0
movlpd qword [esp + 0x30], xmm0
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
sub ecx, edx
sub ecx, eax
mov dword [esp + esi*8 + 0x78], eax
mov eax, dword [esp + 0x1c]
add ecx, dword [eax + 0x50]
mov dword [esp + esi*8 + 0x7c], ecx
inc esi
mov dword [esp + 0x10], esi
cmp esi, 8
jae 0x47c228
mov edx, dword [ebp + 8]
test esi, esi
je 0x47c3b4
cmp esi, 1
jne 0x47c376
cmp dword [esp + 0x7c], 0x8000
jbe 0x47c3e4
mov esi, dword [0x523960]
mov edi, 0x78
test esi, esi
je 0x47c3b1
push 0
lea eax, [esp + 0x7c]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
mov ecx, esi
call dword [0x4e933c]
call esi
test eax, eax
je 0x47c3a9
xor edi, edi
jmp 0x47c3b1
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 0x47c292
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.004a057b
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 0x13c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.004a057b
mov esp, ebp
pop ebp
ret 8