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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xb8
mov esi, dword [esp + 0xd4]
mov ebx, dword [esp + 0xd0]
mov ebp, dword [esp + 0xcc]
mov dword [esp + 4], 0
test ebp, ebp
sete al
test ebx, ebx
sete cl
or cl, al
test esi, esi
sete al
or al, cl
mov edi, 2
jne 0x4b9865
mov eax, dword [ebp]
test eax, eax
je 0x4b94c8
mov ecx, dword [0xad5c18]
push eax
call dword [ecx]
add esp, 4
mov dword [ebp], 0
mov dword [ebx], 0
push esi
call fcn.004c7890
add esp, 4
push eax
push esi
call fcn.004c5cc0
add esp, 8
mov esi, eax
test eax, eax
je 0x4b952f
lea eax, [esp + 4]
push eax
push 0
push 0
push 2
push 0x9b8c78
push esi
call fcn.004c69c0
add esp, 0x18
mov edi, eax
test eax, eax
jne 0x4b982e
push dword [esp + 4]
call fcn.004be960
add esp, 4
xor edi, edi
test eax, eax
je 0x4b9810
mov ebx, eax
mov dword [esp + 8], esi
jmp 0x4b955c
mov edi, 0xf
jmp 0x4b982e
mov eax, 0x11
nop
cmp eax, 4
jne 0x4b981e
push ebx
call fcn.004be9d0
add esp, 4
mov ebx, eax
test eax, eax
je 0x4b9820
push ebx
call fcn.004be9f0
add esp, 4
mov ebp, eax
movups xmm0, xmmword [0x9b8cd2]
movups xmmword [esp + 0x61], xmm0
movups xmm0, xmmword [0x9b8cc9]
movups xmmword [esp + 0x58], xmm0
xorps xmm0, xmm0
movups xmmword [esp + 0xa4], xmm0
movups xmmword [esp + 0x94], xmm0
movups xmmword [esp + 0x84], xmm0
movups xmmword [esp + 0x74], xmm0
mov byte [esp + 0xb4], 0
movups xmmword [esp + 0xc], xmm0
xorps xmm0, xmm0
movsd qword [esp + 0x1c], xmm0
push 1
push eax
call fcn.004c6740
add esp, 8
push ebp
call fcn.004c63f0
add esp, 4
test eax, eax
je 0x4b9549
push ebp
call fcn.004c6200
add esp, 4
push 0x18
lea eax, [esp + 0x5c]
push eax
push ebp
call fcn.004c6930
add esp, 0xc
test eax, eax
je 0x4b9819
push 0x41
lea eax, [esp + 0x78]
push eax
push ebp
call fcn.004c6320
add esp, 0xc
test eax, eax
jne 0x4b9540
mov dword [esp + 0xc], 0
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.004c9560
add esp, 0xc
test eax, eax
je 0x4b9819
push 1
push 0x9b8ce2
push ebp
call fcn.004c6d60
add esp, 0xc
test eax, eax
je 0x4b96ee
mov dword [esp + 0x44], 0x2e3938
mov dword [esp + 0x40], 0x37363534
mov dword [esp + 0x3c], 0x33323130
push 1
push ebp
call fcn.004c63c0
add esp, 8
push ebp
call fcn.004c6200
add esp, 4
push 0xb
lea eax, [esp + 0x40]
push eax
push ebp
call fcn.004c6930
add esp, 0xc
test eax, eax
je 0x4b9539
push 0x10
lea eax, [esp + 0x4c]
push eax
push ebp
call fcn.004c6320
add esp, 0xc
test eax, eax
jne 0x4b9540
lea eax, [esp + 0x48]
push eax
call fcn.004c7950
add esp, 4
test eax, eax
je 0x4b971a
lea eax, [esp + 0x48]
push eax
call sub.api_ms_win_crt_convert_l1_1_0.dll_atoi
add esp, 4
cmp eax, 0x80
ja 0x4b9539
mov ecx, eax
cmp eax, 0x21
jb 0x4b96e5
cmp dword [esp + 0xc], 2
mov eax, 0x11
je 0x4b9540
mov byte [esp + 0x20], cl
jmp 0x4b979f
mov al, 0x40
cmp dword [esp + 0xc], 0x17
je 0x4b979b
movzx ecx, byte [esp + 0x10]
mov al, 8
test cl, cl
jns 0x4b979b
cmp cl, 0xc0
setae al
shl al, 3
or al, 0x10
jmp 0x4b979b
lea eax, [esp + 0x2c]
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov dword [esp + 0x28], 2
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.004c9560
add esp, 0xc
test eax, eax
je 0x4b9539
movzx eax, byte [esp + 0x2c]
push eax
call fcn.004c8a70
add esp, 4
mov byte [esp + 2], al
movzx eax, byte [esp + 0x2d]
push eax
call fcn.004c8a70
add esp, 4
add al, byte [esp + 2]
mov byte [esp + 2], al
movzx eax, byte [esp + 0x2e]
push eax
call fcn.004c8a70
add esp, 4
mov byte [esp + 3], al
movzx eax, byte [esp + 0x2f]
push eax
call fcn.004c8a70
add esp, 4
add al, byte [esp + 3]
add al, byte [esp + 2]
mov byte [esp + 0x20], al
push 1
push ebp
call fcn.004c6740
add esp, 8
push ebp
call fcn.004c63f0
add esp, 4
test eax, eax
jne 0x4b9819
mov ebp, dword [esp + 0xd0]
mov eax, dword [ebp]
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x18]
push eax
mov esi, dword [esp + 0xd0]
push dword [esi]
mov eax, dword [0xad5c24]
call dword [eax]
add esp, 8
test eax, eax
je 0x4b9872
mov dword [esi], eax
mov ecx, dword [ebp]
lea ecx, [ecx + ecx*2]
movsd xmm0, qword [esp + 0x1c]
movsd qword [eax + ecx*8 + 0x10], xmm0
movups xmm0, xmmword [esp + 0xc]
movups xmmword [eax + ecx*8], xmm0
inc dword [ebp]
mov esi, dword [esp + 8]
jmp 0x4b9549
mov ebx, dword [esp + 0xd0]
jmp 0x4b982e
mov eax, 0x11
mov edi, eax
mov ebx, dword [esp + 0xd0]
mov ebp, dword [esp + 0xcc]
push esi
call fcn.004c5d00
add esp, 4
push dword [esp + 4]
call fcn.004bebf0
add esp, 4
test edi, edi
je 0x4b9863
mov eax, dword [0xad5c18]
push dword [ebp]
call dword [eax]
add esp, 4
mov dword [ebp], 0
mov dword [ebx], 0
jmp 0x4b9865
xor edi, edi
mov eax, edi
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, 0xf
mov esi, dword [esp + 8]
jmp 0x4b9820