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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x168
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x3e]
lea edx, [esp + 0x124]
lea esi, [esp + 0x30]
push eax
push ecx
push edx
push dword [ebp + 0x10]
push esi
call fcn.004a83a0
add esp, 0x14
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x5c], 0x4c60d0
mov dword [esp + 0x60], 0x51befc
mov dword [esp + 0x64], ebp
mov dword [esp + 0x6c], esp
mov dword [esp + 0x68], 0x4a7232
mov dword [esp + 0x48], 1
lea eax, [esp + 0x44]
push eax
call fcn.004c7670
add esp, 4
lea ecx, [esp + 0x18]
push 0
push 0xa
call fcn.0046f710
fldz
fstp st(0)
test byte [esp + 0x18], 1
lea eax, [esp + 0x19]
je 0x4a6d2e
mov eax, dword [esp + 0x20]
mov dword [esp + 8], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x84]
mov dword [esp + 0x28], eax
mov dword [esp + 0x40], 0
mov byte [esp + 7], 1
mov byte [esp + 0x17], 0x45
lea eax, [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 0xc], eax
jmp 0x4a6fb6
fstp st(0)
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x4a6da0
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x4a6db0
movzx eax, word [eax]
xor ebx, ebx
cmp ax, 0xffff
mov edi, dword [esp + 8]
jne 0x4a6de0
jmp 0x4a6dd3
xor ecx, ecx
mov bl, 1
mov edi, dword [esp + 8]
jmp 0x4a6de0
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x48], 2
call eax
fldz
fstp st(0)
mov ecx, dword [esp + 0xc]
xor ebx, ebx
cmp ax, 0xffff
mov edi, dword [esp + 8]
jne 0x4a6de0
lea eax, [ebp + 8]
mov dword [eax], 0
xor ecx, ecx
mov bl, 1
lea eax, [ebp + 0xc]
mov edx, dword [eax]
test edx, edx
mov dword [esp + 0xc], ecx
je 0x4a6e4c
mov eax, dword [edx + 0xc]
cmp eax, dword [edx + 0x10]
je 0x4a6e10
movzx eax, word [eax]
cmp ax, 0xffff
je 0x4a6e3f
test bl, bl
mov ecx, dword [esp + 0xc]
jne 0x4a6e56
jmp 0x4a6fc5
mov dword [esp + 0x78], ebx
mov eax, dword [edx]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x48], 3
mov dword [esp + 0x10], edx
mov ecx, edx
call eax
fldz
fstp st(0)
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 8]
mov ebx, dword [esp + 0x78]
cmp ax, 0xffff
jne 0x4a6dfe
lea eax, [ebp + 0xc]
mov dword [eax], 0
mov ecx, dword [esp + 0xc]
xor edx, edx
test bl, bl
jne 0x4a6fc5
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x2c]
movzx ebx, byte [esp + 0x18]
test bl, 1
jne 0x4a6e90
shr ebx, 1
lea edx, [edi + ebx]
cmp eax, edx
je 0x4a6e9b
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
mov dword [esp + 8], edi
je 0x4a6f16
movzx eax, word [eax]
jmp 0x4a6f2d
mov ebx, dword [esp + 0x1c]
lea edx, [edi + ebx]
cmp eax, edx
jne 0x4a6e71
mov dword [esp + 8], ebx
lea eax, [ebx + ebx]
mov dword [esp + 0x48], 4
lea ecx, [esp + 0x18]
push 0
push eax
call fcn.0046f710
fldz
fstp st(0)
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 + 0x48], 5
lea ecx, [esp + 0x18]
push 0
push eax
call fcn.0046f710
fldz
fstp st(0)
test byte [esp + 0x18], 1
lea edi, [esp + 0x19]
je 0x4a6ef8
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 8]
add eax, edi
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
mov dword [esp + 8], edi
jne 0x4a6e81
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x48], 6
call eax
fldz
fstp st(0)
mov edi, dword [esp + 8]
movzx ecx, word [esp + 0x3e]
movzx edx, word [esp + 0x3c]
mov dword [esp + 0x48], 7
movzx eax, ax
lea esi, [esp + 0x124]
push esi
lea esi, [esp + 0x44]
push esi
lea esi, [esp + 0x30]
push esi
lea esi, [esp + 0x90]
push esi
lea esi, [esp + 0x40]
push esi
push edx
push ecx
lea ecx, [esp + 0x48]
push ecx
push edi
lea ecx, [esp + 0x3b]
push ecx
lea ecx, [esp + 0x2f]
push ecx
push eax
call fcn.004a85f0
add esp, 0x30
fldz
fstp st(0)
test eax, eax
jne 0x4a6fbd
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
jne 0x4a6fb0
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
mov dword [esp + 0x48], 8
call eax
fldz
jmp 0x4a6d70
add eax, 2
mov dword [ecx + 0xc], eax
fldz
jmp 0x4a6d70
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 8]
movzx eax, byte [esp + 0x30]
test al, 1
je 0x4a6fdf
mov eax, dword [esp + 0x34]
mov dword [esp + 0x10], edx
cmp byte [esp + 7], 0
jne 0x4a6fec
jmp 0x4a7014
shr eax, 1
mov dword [esp + 0x10], edx
cmp byte [esp + 7], 0
je 0x4a7014
test eax, eax
je 0x4a7014
mov eax, dword [esp + 0x28]
mov ecx, eax
lea edx, [esp + 0x84]
sub ecx, edx
cmp ecx, 0x9f
jg 0x4a7014
mov ecx, dword [esp + 0x40]
lea edx, [eax + 4]
mov dword [esp + 0x28], edx
mov dword [eax], ecx
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x48], 9
push dword [ebp + 0x14]
push eax
push edi
call fcn.004c1c90
add esp, 0xc
mov eax, dword [ebp + 0x18]
fstp xword [eax]
movzx ecx, byte [esp + 0x30]
mov ebx, ecx
and bl, 1
je 0x4a704b
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x4a7057
jmp 0x4a7126
mov eax, ecx
shr eax, 1
test eax, eax
je 0x4a7126
mov edx, dword [esp + 0x28]
mov eax, edx
lea esi, [esp + 0x84]
sub eax, esi
cmp eax, 5
jl 0x4a7126
lea edi, [edx - 4]
lea eax, [esp + 0x84]
cmp eax, edx
je 0x4a70b3
cmp edi, eax
jbe 0x4a70b3
lea ecx, [esp + 0x88]
mov dword [esp + 8], edi
mov edx, edi
nop
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 0x4a7090
mov cl, byte [esp + 0x30]
mov ebx, ecx
and bl, 1
mov edi, dword [esp + 8]
test bl, bl
je 0x4a70c1
mov edx, dword [esp + 0x38]
cmp edi, eax
ja 0x4a70c9
jmp 0x4a7109
lea edx, [esp + 0x31]
cmp edi, eax
jbe 0x4a7109
test bl, bl
je 0x4a70d3
mov ecx, dword [esp + 0x34]
jmp 0x4a70d8
shr cl, 1
movzx ecx, cl
add ecx, edx
jmp 0x4a70f6
mov eax, ecx
sub eax, edx
cmp eax, 1
lea eax, [edx + 1]
cmovg edx, eax
mov eax, esi
add eax, 4
cmp eax, edi
jae 0x4a7109
mov esi, eax
movzx ebx, byte [edx]
mov eax, ebx
add al, 0xff
cmp al, 0x7d
ja 0x4a70e0
cmp dword [esi], ebx
je 0x4a70e0
jmp 0x4a711d
movzx ecx, byte [edx]
mov eax, ecx
add al, 0xff
cmp al, 0x7d
ja 0x4a7126
mov eax, dword [edi]
add eax, 0xffffffff
cmp eax, ecx
jb 0x4a7126
mov eax, dword [ebp + 0x14]
mov dword [eax], 4
mov bl, 1
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x4a7155
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
mov edx, dword [esp + 0x10]
je 0x4a71ab
movzx eax, word [eax]
cmp ax, 0xffff
je 0x4a71ce
xor ebx, ebx
test edx, edx
jne 0x4a71db
jmp 0x4a715d
mov edx, dword [esp + 0x10]
test edx, edx
jne 0x4a71db
test bl, bl
je 0x4a7167
mov eax, dword [ebp + 0x14]
or byte [eax], 2
lea eax, [ebp + 8]
mov esi, dword [eax]
test byte [esp + 0x18], 1
je 0x4a717f
push dword [esp + 0x20]
call fcn.004c3b20
add esp, 4
test byte [esp + 0x30], 1
je 0x4a7192
push dword [esp + 0x38]
call fcn.004c3b20
add esp, 4
lea eax, [esp + 0x44]
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
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x48], 0xa
call eax
fldz
fstp st(0)
mov edx, dword [esp + 0x10]
mov bl, 1
cmp ax, 0xffff
jne 0x4a7149
lea eax, [ebp + 8]
mov dword [eax], 0
test edx, edx
je 0x4a715d
mov eax, dword [edx + 0xc]
cmp eax, dword [edx + 0x10]
je 0x4a71f9
movzx eax, word [eax]
cmp ax, 0xffff
je 0x4a721c
test bl, bl
je 0x4a7161
jmp 0x4a7167
mov dword [esp + 0xc], ebx
mov eax, dword [edx]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x48], 0xb
mov ecx, edx
call eax
fldz
fstp st(0)
mov ebx, dword [esp + 0xc]
cmp ax, 0xffff
jne 0x4a71ec
lea eax, [ebp + 0xc]
mov dword [eax], 0
test bl, bl
jne 0x4a7161
jmp 0x4a7167