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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov esi, edx
mov ebx, ecx
lea eax, [esp + 0x18]
push 0
push 0
push edx
push eax
call fcn.004aa7b0
add esp, 0x10
test byte [esp + 0x1c], 1
jne 0x4ad483
mov dword [esp + 0x10], esi
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x38], edi
movzx eax, byte [0x533160]
test al, al
je 0x4ad599
and esi, ecx
cmp esi, 0xffffffff
je 0x4ad4c6
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x28], eax
mov esi, dword [ebp + 0x10]
cmp ecx, 0x4000
mov dword [esp + 0x24], edi
jb 0x4ad334
cmp dword [0x533834], ecx
ja 0x4ad334
mov dword [esp + 0x40], 0
mov dword [esp + 0xc], ecx
call fcn.00504d20
mov dword [esp + 0x44], eax
mov ecx, 0x1c
mov edx, dword [esp + 0x10]
call fcn.004acca0
mov esi, eax
mov dword [eax], 0x516184
mov dword [esp + 0x14], eax
add esi, 0xc
call fcn.004a9c10
mov edi, eax
dec edi
and edi, dword [ebp + 0x10]
add edi, dword [esp + 0xc]
call fcn.004a9c10
neg eax
mov edx, eax
sar edx, 0x1f
and edx, dword [ebp + 0x14]
and eax, dword [ebp + 0x10]
mov dword [esp + 0x34], esi
mov ecx, esi
lea esi, [esp + 0x40]
push esi
mov esi, dword [ebp + 0x10]
push edx
push eax
push edi
mov edi, dword [esp + 0x34]
push 2
push edi
call fcn.004a9a30
cmp dword [esp + 0x40], 0
jne 0x4ad327
mov ecx, dword [esp + 0x34]
call fcn.004a7ba0
mov edi, eax
call fcn.004a9c10
dec eax
and eax, esi
add eax, edi
mov ecx, dword [esp + 0x14]
mov dword [ecx + 4], eax
add eax, dword [esp + 0xc]
mov dword [ecx + 8], eax
cmp dword [esp + 0x40], 0
je 0x4ad54c
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0xc]
movzx eax, word [ebp + 0x18]
mov word [esp + 0x3c], ax
sub esp, 0x10
mov word [esp + 0xc], ax
mov eax, dword [esp + 0x20]
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
lea eax, [esp + 0x30]
mov dword [esp], eax
call fcn.004ad600
add esp, 0x10
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4ad512
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebx
mov edi, dword [eax + 4]
mov ebx, dword [eax + 8]
sub ebx, edi
jmp 0x4ad388
test esi, esi
jne 0x4ad4fd
test ebx, ebx
je 0x4ad502
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], ebx
sub esp, 0x18
movsd xmm0, qword [esp + 0x8c]
movsd qword [esp + 8], xmm0
mov eax, dword [esp + 0x40]
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x28]
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
lea eax, [esp + 0x58]
mov dword [esp], eax
call fcn.004aa9a0
add esp, 0x18
test byte [esp + 0x44], 1
jne 0x4ad400
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4ad465
sub ebx, eax
add edi, eax
add esi, eax
mov dword [esp + 0x10], esi
adc dword [esp + 0x28], 0
xor esi, esi
test byte [esp + 0x44], 1
je 0x4ad380
jmp 0x4ad447
mov eax, dword [esp + 0x40]
mov dword [esp + 0x40], 0
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
push eax
call fcn.0049cfd0
add esp, 4
mov ecx, dword [esp + 0xc]
or byte [ecx + 8], 1
mov dword [ecx + 4], edx
mov dword [ecx], eax
mov ecx, dword [esp + 0x30]
mov esi, 1
test ecx, ecx
je 0x4ad43c
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x44], 1
je 0x4ad380
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x40], 0
test ecx, ecx
je 0x4ad380
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4ad380
push ebx
push 0
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
mov esi, 3
test byte [esp + 0x44], 1
je 0x4ad380
jmp 0x4ad447
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], 0
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
push eax
call fcn.0049cfd0
add esp, 4
or byte [ebx + 8], 1
mov dword [ebx + 4], edx
mov dword [ebx], eax
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x4ad4b6
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x1c], 1
jne 0x4ad57c
jmp 0x4ad591
xorps xmm0, xmm0
movups xmmword [esp + 0x4c], xmm0
movaps xmmword [esp + 0x40], xmm0
mov dword [esp + 0x5c], 0xffff
movaps xmmword [esp + 0x60], xmm0
lea eax, [esp + 0x40]
push eax
push edi
call fcn.004a9730
add esp, 8
test eax, eax
je 0x4ad526
or byte [ebx + 8], 1
mov dword [ebx], eax
mov dword [ebx + 4], edx
jmp 0x4ad568
cmp esi, 3
jne 0x4ad53d
mov ecx, dword [esp + 0xc]
and byte [ecx + 8], 0xfe
mov eax, dword [esp + 0x20]
mov dword [ecx], eax
jmp 0x4ad568
call fcn.00504e40
or byte [ebx + 8], 1
mov dword [ebx + 4], eax
mov dword [ebx], 0xc
jmp 0x4ad568
mov eax, dword [esp + 0x58]
cmp eax, 2
je 0x4ad534
cmp eax, 5
jne 0x4ad558
mov ecx, dword [esp + 0x54]
jmp 0x4ad25c
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x4ad568
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4ad568
and byte [ebx + 8], 0xfe
mov eax, dword [esp + 0x14]
mov dword [ebx], eax
jmp 0x4ad568
mov ecx, ebx
mov edx, edi
push dword [esp + 0x10]
call fcn.004adf40
add esp, 4
lea eax, [esp + 0x38]
push eax
call fcn.004aabf0
add esp, 4
test byte [esp + 0x1c], 1
je 0x4ad591
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x18], 0
test ecx, ecx
je 0x4ad591
mov eax, dword [ecx]
call dword [eax + 4]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x533160
call sub.libc.dll___cxa_guard_acquire
mov ecx, dword [ebp + 8]
add esp, 4
test eax, eax
je 0x4ad251
call fcn.004ae2c0
mov dword [0x533834], eax
push 0x533160
call sub.libc.dll___cxa_guard_release
mov ecx, dword [ebp + 8]
add esp, 4
jmp 0x4ad251