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

Disassembly:
sub esp, 0x1a0
push ebx
push esi
push edi
push ebp
mov ebp, dword [esp + 0x1b4]
push 0x50b0e0
push ebp
call fcn.004bcf10
add esp, 8
mov ebx, eax
test ebx, ebx
push ebp
jne 0x4ad120
push 6
call fcn.0041af30
add esp, 8
mov eax, 0xfffffffe
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a0
ret
lea eax, [esp + 0x178]
push case.0x49c627.1
push 0x50b23c
push eax
call fcn.004bd130
lea eax, [esp + 0x184]
add esp, 0x10
push eax
call fcn.0045fb40
lea eax, [esp + 0x44]
add esp, 4
mov dword [0x51a344], 0
push eax
call fcn.00419db0
lea eax, [esp + 0x44]
add esp, 4
push 0
push 0
push 0
push 0
push 0
push eax
push 0x519308
call fcn.004ad460
add esp, 0x1c
mov eax, dword [0x51a344]
push eax
call fcn.00499630
lea edi, [esp + 0x74]
add esp, 4
xor eax, eax
mov ecx, 0x40
rep stosd dword es:[edi], eax
mov edi, 0x512f9c
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edi, [esp + 0x70]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0xf6]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [esp + 0xc0], 0x12d
mov word [esp + 0xc2], 0
mov eax, dword [str.:___________X]
mov esi, dword [0x512f94]
mov ecx, str.:___________X
mov dword [edx], eax
mov dword [edx + 4], esi
mov cl, byte [ecx + 8]
mov byte [edx + 8], cl
lea eax, [esp + 0x38]
lea edx, [esp + 0x30]
lea ecx, [esp + 0x28]
push eax
lea eax, [esp + 0x24]
push edx
push ecx
push eax
push 0x519308
call fcn.0049a1c0
mov ecx, dword [esp + 0x38]
mov dword [esp + 0xdc], ecx
mov edx, dword [esp + 0x34]
mov dword [esp + 0xd8], edx
mov eax, dword [esp + 0x40]
mov dword [esp + 0xe4], eax
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0xe0], ecx
add esp, 0x14
fld qword [esp + 0x30]
fadd qword [esp + 0x20]
push ebx
push 0x100
lea edx, [esp + 0x78]
push 1
push edx
fstp qword [esp + 0xe4]
fld qword [esp + 0x48]
fadd qword [esp + 0x38]
fstp qword [esp + 0xec]
call fcn.004bf1c0
add esp, 0x10
cmp eax, 0x100
je 0x4ad296
push ebp
push 9
call fcn.0041af30
add esp, 8
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a0
ret
movsx eax, word [0x518830]
add eax, eax
push eax
call fcn.004191b0
mov dword [esp + 0x1c], eax
add esp, 4
test eax, eax
jne 0x4ad2c0
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a0
ret
xor esi, esi
mov word [esp + 0x16], si
cmp word [0x518830], si
jle 0x4ad307
mov ecx, dword [esp + 0x18]
xor edx, edx
mov eax, dword [0x518834]
cmp byte [eax + edx], 0x2a
je 0x4ad2f0
mov ax, word [esp + 0x16]
mov word [ecx], ax
inc word [esp + 0x16]
jmp 0x4ad2f5
mov word [ecx], 0
add ecx, 2
add edx, 0x18
movsx eax, word [0x518830]
inc esi
cmp eax, esi
jg 0x4ad2d6
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x1c]
push ebx
and eax, 0xff80ffff
push 4
or eax, 0x800000
push 1
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
call fcn.004bf1c0
mov ax, word [esp + 0x26]
add esp, 0x10
imul ax, ax, 0xb
add ax, 2
push ebx
mov word [esp + 0x16], ax
push 2
lea eax, [esp + 0x1a]
push 1
push eax
call fcn.004bf1c0
lea ecx, [esp + 0x26]
add esp, 0x10
xor edi, edi
push ebx
push 2
push 1
push ecx
call fcn.004bf1c0
add esp, 0x10
cmp word [0x518830], di
jle 0x4ad3d3
xor esi, esi
mov ecx, dword [0x518834]
add ecx, esi
cmp byte [ecx], 0x2a
je 0x4ad3c4
xor ax, ax
mov al, byte [ecx + 0xa]
and ax, 0xf
mov word [esp + 0x14], ax
cmp byte [ecx + 9], 0
je 0x4ad39d
or byte [esp + 0x14], 0x40
lea eax, [esp + 0x14]
push ebx
push 2
push 1
push eax
call fcn.004bf1c0
add esp, 0x10
mov eax, dword [0x518834]
add eax, esi
push ebx
push 9
push 1
push eax
call fcn.004bf1c0
add esp, 0x10
add esi, 0x18
inc edi
movsx eax, word [0x518830]
cmp eax, edi
jg 0x4ad376
lea eax, [esp + 0x40]
push eax
call fcn.00419db0
mov eax, dword [esp + 0x1c]
add esp, 4
lea ecx, [esp + 0x40]
push ebx
push 0
push eax
push 0
push 0
push ecx
push 0x519308
call fcn.004ad460
add esp, 0x1c
mov esi, eax
call fcn.004996e0
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004191e0
add esp, 4
cmp esi, 0x14
jne 0x4ad422
push ebp
push 9
call fcn.0041af30
add esp, 8
push 0
push 0x52
push ebx
call fcn.004bcf80
add esp, 0xc
push ebx
push 4
push 1
push 0x51a344
call fcn.004bf1c0
add esp, 0x10
push ebx
call fcn.004bce30
add esp, 4
call fcn.0045fbd0
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a0
ret