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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x148
lea eax, [esp + 0x16]
lea ecx, [esp + 0x17]
lea edx, [esp + 0x84]
lea esi, [esp + 0x2c]
push eax
push ecx
push edx
push dword [ebp + 0x10]
push esi
call fcn.004a7bc0
add esp, 0x14
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x54], 0x4c60d0
mov dword [esp + 0x58], 0x51bd8c
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x64], esp
mov dword [esp + 0x60], 0x4a2150
mov dword [esp + 0x40], 1
lea eax, [esp + 0x3c]
push eax
call fcn.004c7670
add esp, 4
lea ecx, [esp + 0x18]
push 0
push 0xa
call fcn.0046f710
test byte [esp + 0x18], 1
lea eax, [esp + 0x19]
je 0x4a1cda
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0xa4]
mov dword [esp + 0x24], eax
mov dword [esp + 0x38], 0
mov byte [esp + 0xf], 1
mov byte [esp + 0x15], 0x45
lea eax, [ebp + 8]
mov ecx, dword [eax]
jmp 0x4a1d16
add eax, 1
mov dword [ecx + 0xc], eax
test ecx, ecx
je 0x4a1d60
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
mov edi, dword [esp + 4]
jne 0x4a1d66
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x40], 2
mov dword [esp + 8], ecx
call eax
mov ecx, dword [esp + 8]
cmp eax, 0xffffffff
mov edi, dword [esp + 4]
jne 0x4a1d66
lea eax, [ebp + 8]
mov dword [eax], 0
xor ecx, ecx
jmp 0x4a1d66
xor ecx, ecx
mov edi, dword [esp + 4]
lea eax, [ebp + 0xc]
mov edx, dword [eax]
test edx, edx
mov dword [esp + 8], ecx
je 0x4a1dc0
mov eax, dword [edx + 0xc]
cmp eax, dword [edx + 0x10]
jne 0x4a1da1
mov eax, dword [edx]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x40], 3
mov dword [esp + 0x10], edx
mov ecx, edx
call eax
mov ecx, dword [esp + 8]
cmp eax, 0xffffffff
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 4]
je 0x4a1daa
test ecx, ecx
je 0x4a1dca
jmp 0x4a1f14
lea eax, [ebp + 0xc]
mov dword [eax], 0
nop word cs:[eax + eax]
nop dword [eax]
xor edx, edx
test ecx, ecx
je 0x4a1f14
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x28]
movzx ebx, byte [esp + 0x18]
test bl, 1
jne 0x4a1e00
shr ebx, 1
lea edx, [edi + ebx]
cmp eax, edx
je 0x4a1e0b
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
mov dword [esp + 4], edi
je 0x4a1e7e
movzx eax, byte [eax]
jmp 0x4a1e91
mov ebx, dword [esp + 0x1c]
lea edx, [edi + ebx]
cmp eax, edx
jne 0x4a1de5
mov dword [esp + 4], ebx
lea eax, [ebx + ebx]
mov dword [esp + 0x40], 4
lea ecx, [esp + 0x18]
push 0
push eax
call fcn.0046f710
mov eax, dword [esp + 0x18]
and eax, 0xfffffffe
add eax, 0xffffffff
test byte [esp + 0x18], 1
mov ecx, 0xa
cmove eax, ecx
mov dword [esp + 0x40], 5
lea ecx, [esp + 0x18]
push 0
push eax
call fcn.0046f710
mov ecx, dword [esp + 8]
test byte [esp + 0x18], 1
lea edi, [esp + 0x19]
je 0x4a1e64
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 4]
add eax, edi
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
mov dword [esp + 4], edi
jne 0x4a1df5
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x40], 6
call eax
mov edi, dword [esp + 4]
movsx ecx, byte [esp + 0x17]
movsx edx, byte [esp + 0x16]
mov dword [esp + 0x40], 7
movsx eax, al
lea esi, [esp + 0x84]
push esi
lea esi, [esp + 0x3c]
push esi
lea esi, [esp + 0x2c]
push esi
lea esi, [esp + 0xb0]
push esi
lea esi, [esp + 0x3c]
push esi
push edx
push ecx
lea ecx, [esp + 0x44]
push ecx
push edi
lea ecx, [esp + 0x39]
push ecx
lea ecx, [esp + 0x37]
push ecx
push eax
call fcn.004a7e00
add esp, 0x30
mov ecx, dword [esp + 8]
test eax, eax
jne 0x4a1f0c
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
jne 0x4a1d10
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
mov dword [esp + 0x40], 8
call eax
mov ecx, dword [esp + 8]
jmp 0x4a1d16
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 4]
movzx eax, byte [esp + 0x2c]
test al, 1
je 0x4a1f2e
mov eax, dword [esp + 0x30]
mov dword [esp + 0x10], edx
cmp byte [esp + 0xf], 0
jne 0x4a1f3b
jmp 0x4a1f63
shr eax, 1
mov dword [esp + 0x10], edx
cmp byte [esp + 0xf], 0
je 0x4a1f63
test eax, eax
je 0x4a1f63
mov eax, dword [esp + 0x24]
mov ecx, eax
lea edx, [esp + 0xa4]
sub ecx, edx
cmp ecx, 0x9f
jg 0x4a1f63
mov ecx, dword [esp + 0x38]
lea edx, [eax + 4]
mov dword [esp + 0x24], edx
mov dword [eax], ecx
mov eax, dword [esp + 0x28]
mov dword [esp + 0x40], 9
push dword [ebp + 0x14]
push eax
push edi
call fcn.004c1af0
add esp, 0xc
fstp qword [esp + 0x78]
mov esi, dword [esp + 8]
movsd xmm0, qword [esp + 0x78]
mov eax, dword [ebp + 0x18]
movsd qword [eax], xmm0
movzx ecx, byte [esp + 0x2c]
mov ebx, ecx
and bl, 1
je 0x4a1faa
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x4a1fb6
jmp 0x4a208a
mov eax, ecx
shr eax, 1
test eax, eax
je 0x4a208a
mov edx, dword [esp + 0x24]
mov eax, edx
lea edi, [esp + 0xa4]
sub eax, edi
cmp eax, 5
jl 0x4a208a
lea edi, [edx - 4]
lea eax, [esp + 0xa4]
cmp eax, edx
mov dword [esp + 4], edi
je 0x4a2017
cmp edi, eax
jbe 0x4a2017
lea ecx, [esp + 0xa8]
mov edx, edi
nop dword [eax]
mov esi, dword [ecx - 4]
mov edi, dword [edx]
mov dword [ecx - 4], edi
mov dword [edx], esi
add edx, 0xfffffffc
lea esi, [ecx + 4]
cmp ecx, edx
mov ecx, esi
jb 0x4a1ff0
mov cl, byte [esp + 0x2c]
mov ebx, ecx
and bl, 1
mov esi, dword [esp + 8]
mov edi, dword [esp + 4]
test bl, bl
je 0x4a2025
mov edx, dword [esp + 0x34]
cmp edi, eax
ja 0x4a202d
jmp 0x4a206d
lea edx, [esp + 0x2d]
cmp edi, eax
jbe 0x4a206d
test bl, bl
je 0x4a2037
mov ecx, dword [esp + 0x30]
jmp 0x4a203c
shr cl, 1
movzx ecx, cl
add ecx, edx
jmp 0x4a205a
mov eax, ecx
sub eax, edx
cmp eax, 1
lea eax, [edx + 1]
cmovg edx, eax
mov eax, edi
add eax, 4
mov edi, dword [esp + 4]
cmp eax, edi
jae 0x4a206d
mov edi, eax
movzx ebx, byte [edx]
mov eax, ebx
add al, 0xff
cmp al, 0x7d
ja 0x4a2040
cmp dword [edi], ebx
je 0x4a2040
jmp 0x4a2081
movzx ecx, byte [edx]
mov eax, ecx
add al, 0xff
cmp al, 0x7d
ja 0x4a208a
mov eax, dword [edi]
add eax, 0xffffffff
cmp eax, ecx
jb 0x4a208a
mov eax, dword [ebp + 0x14]
mov dword [eax], 4
test esi, esi
je 0x4a20c5
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x10]
jne 0x4a20cb
mov eax, dword [esi]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x40], 0xa
mov ecx, esi
call eax
mov esi, dword [esp + 8]
cmp eax, 0xffffffff
mov ecx, dword [esp + 0x10]
jne 0x4a20cb
lea eax, [ebp + 8]
mov dword [eax], 0
xor esi, esi
jmp 0x4a20cb
xor esi, esi
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4a214a
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
jne 0x4a20f3
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x40], 0xb
mov dword [esp + 8], esi
call eax
mov esi, dword [esp + 8]
cmp eax, 0xffffffff
je 0x4a2141
test esi, esi
je 0x4a20fd
mov eax, dword [ebp + 0x14]
or byte [eax], 2
lea eax, [ebp + 8]
mov esi, dword [eax]
test byte [esp + 0x18], 1
je 0x4a2115
push dword [esp + 0x20]
call fcn.004c3b20
add esp, 4
test byte [esp + 0x2c], 1
je 0x4a2128
push dword [esp + 0x34]
call fcn.004c3b20
add esp, 4
lea eax, [esp + 0x3c]
push eax
call fcn.004c76a0
add esp, 4
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
lea eax, [ebp + 0xc]
mov dword [eax], 0
test esi, esi
jne 0x4a20fd
jmp 0x4a20f7