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

Disassembly:
sub esp, 0xe0
mov eax, dword [0x5b3890]
xor eax, esp
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0xf0]
push ebx
push ebp
mov ebp, dword [esp + 0xf4]
push esi
mov esi, dword [esp + 0xf0]
push edi
mov edi, dword [esp + 0xf8]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], eax
call fcn.004adb00
xor ebx, ebx
mov dword [esp + 0x14], eax
cmp esi, ebx
je 0x4ae1dc
cmp ebp, ebx
je 0x4ae1dc
mov ecx, dword [esp + 0x18]
cmp dword [ecx], 1
jb 0x4ae1dc
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov eax, 0x11d0
push 0x30
mov word [esp + 0x82], ax
mov al, 0xc2
lea ecx, [esp + 0x4c]
mov edx, 0xcd44
push ebx
push ecx
mov dword [esp + 0x30], 0x24
mov dword [esp + 0x38], edi
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x84], 0xaac56b
mov word [esp + 0x88], dx
mov byte [esp + 0x8c], 0x8c
mov byte [esp + 0x8d], al
mov byte [esp + 0x8e], bl
mov byte [esp + 0x8f], 0xc0
mov byte [esp + 0x90], 0x4f
mov byte [esp + 0x91], al
mov byte [esp + 0x92], 0x95
mov byte [esp + 0x93], 0xee
call fcn.00519500
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 1
mov eax, 2
push SysReAllocString
lea edx, [esp + 0x3c]
push esi
mov dword [esp + 0x64], 0x30
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], eax
mov dword [esp + 0x80], 1
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], 0x110
mov dword [esp + 0x90], ebx
mov dword [esp + 0x7c], edx
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, dword [esp + 0x14]
mov esi, eax
cmp esi, 0xffffffff
je 0x4ae11a
mov eax, dword [edi + 0x20]
mov dword [esp + 0x10], 0x64
cmp eax, ebx
je 0x4ae0b0
push ebx
lea ecx, [esp + 0x8c]
push ecx
lea edx, [esp + 0x18]
push edx
push esi
call eax
jmp 0x4ae0b8
push 1
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
xor ecx, ecx
lea eax, [eax + eax + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00518c06
add esp, 4
xor esi, esi
mov ebp, eax
cmp dword [esp + 0x10], ebx
jbe 0x4ae116
mov edi, ebp
lea esp, [esp]
movzx eax, byte [esp + esi + 0x88]
push eax
push str._02X
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
inc esi
add esp, 0xc
add edi, 4
cmp esi, dword [esp + 0x10]
jb 0x4ae0f0
mov edi, dword [esp + 0x14]
mov dword [esp + 0x30], ebp
cmp dword [edi + 0xc], ebx
je 0x4ae1d5
call fcn.004ad230
test al, al
jne 0x4ae1d5
call fcn.004ad950
test al, al
je 0x4ae1d5
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x7c]
push edx
push ebx
call eax
cmp eax, ebx
jne 0x4ae1e1
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x68]
mov esi, dword [esp + 0x20]
push ebx
push edx
push eax
push ecx
push edi
mov ecx, esi
call fcn.004ad660
cmp ebp, ebx
je 0x4ae180
push ebp
call fcn.00519d85
add esp, 4
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x50]
push ecx
mov ecx, esi
call fcn.004adc40
mov dword [esp + 0x64], 2
mov esi, eax
cmp dword [edi + 0xc], ebx
je 0x4ae1c7
call fcn.004ad230
test al, al
jne 0x4ae1c7
call fcn.004ad950
test al, al
je 0x4ae1c7
mov ecx, dword [edi + 0xc]
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x7c]
push eax
push ebx
call ecx
mov eax, esi
neg eax
sbb eax, eax
and eax, 0xfffffff3
add eax, 0xd
jmp 0x4ae1e1
mov eax, 1
jmp 0x4ae1e1
mov eax, 0x57
mov ecx, dword [esp + 0xec]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051916c
add esp, 0xe0
ret 0x10