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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x138
mov eax, dword [0x521104]
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 0x47f386
cmp byte [ecx + 0x26], 0
jne 0x47f386
cmp byte [ecx + 0x2a], 0
jne 0x47f386
mov edx, dword [ebp + 8]
test edx, edx
jne 0x47f09c
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 0x47f0af
cmp dword [edx + 8], 0x8000
jbe 0x47f39e
test byte [ecx + 0x2e], 2
je 0x47f0d0
mov eax, 0xb7
pop edi
pop esi
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.004a389b
mov esp, ebp
pop ebp
ret 8
mov edi, dword [0x528c4c]
mov esi, dword [edx + 4]
dec edi
mov eax, dword [edx]
mov dword [esp + 0xc], 0
test esi, esi
ja 0x47f11d
jb 0x47f0ee
cmp eax, edi
ja 0x47f11d
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 0x47f11d
ja 0x47f119
cmp eax, dword [ecx + 0x40]
jb 0x47f11d
or byte [ecx + 0x2e], 2
mov eax, dword [ecx + 0x48]
test eax, eax
jne 0x47f12e
mov edi, 0xa0
jmp 0x47f21a
mov esi, dword [0x528ba0]
mov edi, 0x78
test esi, esi
je 0x47f212
cmp byte [0x528c68], 0
jne 0x47f212
cmp byte [eax + 5], 0
jne 0x47f212
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x47f212
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 0x47f1ec
xor edi, edi
jmp 0x47f20b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, 1
movzx eax, byte [0x528c68]
cmp edi, 0x32
cmove eax, ecx
mov byte [0x528c68], al
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 8]
test edi, edi
je 0x47f386
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 0x47f31d
jb 0x47f281
cmp eax, dword [esp + 0x28]
jae 0x47f31d
mov edx, dword [esp + 0xc]
cmp dword [esp + 0x30], edx
mov edx, dword [ebp + 8]
jb 0x47f31d
ja 0x47f2a2
mov esi, dword [esp + 0x20]
cmp dword [esp + 0x24], esi
mov esi, dword [esp + 0x18]
jbe 0x47f31d
cmp ecx, dword [esp + 0xc]
jb 0x47f2b6
mov edx, dword [esp + 0x20]
ja 0x47f2b2
cmp eax, edx
jbe 0x47f2b6
sub eax, edx
jmp 0x47f2c3
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 0x47f2ec
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
jb 0x47f2e8
cmp eax, edx
jae 0x47f2ec
sub edx, eax
jmp 0x47f2f9
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 0x47f386
mov edx, dword [ebp + 8]
test esi, esi
je 0x47f36e
cmp esi, 1
jne 0x47f330
cmp dword [esp + 0x7c], 0x8000
jbe 0x47f39e
mov esi, dword [0x528bb8]
mov edi, 0x78
test esi, esi
je 0x47f36b
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 [0x4ed33c]
call esi
test eax, eax
je 0x47f363
xor edi, edi
jmp 0x47f36b
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 0x47f250
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.004a389b
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 0x13c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.004a389b
mov esp, ebp
pop ebp
ret 8