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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc4
mov dword [esp + 8], edx
mov edi, ecx
movzx ebx, byte [esp + 0xd8]
mov eax, dword [0x8e4a3c]
xor eax, esp
mov dword [esp], 0
mov dword [esp + 0xc0], eax
cmp ebx, 4
ja case.0x4a4d82.3
jmp dword [ebx*4 + 0x5ec0f4]
lea eax, [edi + 0x3c]
jmp 0x4a4d9b
lea eax, [edi + 0x54]
jmp 0x4a4d9b
lea eax, [edi + 0x48]
jmp 0x4a4d9b
lea eax, [edi + 0x60]
mov dword [esp], eax
mov eax, dword [esp]
mov eax, dword [eax + 8]
test eax, 0x3fff0000
je 0x4a4ee7
test eax, 0x40000000
jne 0x4a4dcd
mov eax, dword [esp]
cmp word [eax], 0
jne 0x4a4dcd
mov eax, dword [esp]
cmp word [eax + 2], 0
je 0x4a4ee7
push 0x12
push 0
push edi
call fcn.00478c90
add esp, 0xc
mov esi, eax
push 0x32
push 0
push edi
call fcn.00478c90
add esp, 0xc
mov ebp, eax
add ebp, esi
push edi
call fcn.00474da0
add esp, 4
mov word [esp + 0x14], ax
movzx eax, word [edi + 0x84]
mov dword [esp + 0x1c], eax
lea esi, [esp + 0x88]
push esi
call fcn.0047d770
add esp, 4
push esi
push 0x60000
push edi
call fcn.00473b20
add esp, 0xc
add bp, word [edi + 0x14]
push edi
call fcn.00476d60
add esp, 4
mov ecx, eax
mov eax, dword [esp]
mov eax, dword [eax + 8]
cmp bl, 2
mov dword [esp + 0x18], ebx
je 0x4a4e5b
test eax, 0x40000000
jne 0x4a4e6c
mov dword [esp + 4], 0
movzx esi, word [edi + 0x16]
jmp 0x4a4f00
test eax, 0x40000000
jne 0x4a4e8a
mov dword [esp + 4], 0
jmp 0x4a4ea2
push 0x10
push 0x60000
push edi
mov esi, ecx
call fcn.00478c90
mov ecx, esi
add esp, 0xc
mov dword [esp + 4], eax
movzx esi, word [edi + 0x16]
jmp 0x4a4f00
push 0x11
push 0x60000
push edi
mov esi, ecx
call fcn.00478c90
mov ecx, esi
add esp, 0xc
mov dword [esp + 4], eax
movzx esi, word [edi + 0x1a]
mov eax, dword [esp + 8]
mov eax, dword [eax + 8]
cmp si, word [eax + 6]
jg 0x4a4ee7
mov ebx, ecx
movsx ecx, si
movsx edx, word [esp + 4]
add edx, ecx
mov ecx, dword [esp + 0x88]
movsx ecx, word [ecx + 8]
mov dword [esp + 0x10], ebp
mov ebp, dword [esp]
movsx ebp, word [ebp]
add ebp, edx
add ebp, ecx
mov ecx, ebx
movsx eax, word [eax + 2]
cmp ebp, eax
mov ebp, dword [esp + 0x10]
jge 0x4a4f00
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.004c0e60
add esp, 0xc4
pop esi
pop edi
pop ebx
pop ebp
ret
mov word [esp + 0xc], si
movsx eax, word [esp + 0x14]
mov ebx, dword [esp + 0x1c]
imul ebx, eax
shr ebx, 8
sub ebp, ecx
lea esi, [esp + 0x7c]
push esi
call fcn.0047e2e0
add esp, 4
push esi
push 0x60000
push edi
call fcn.00473d40
add esp, 0xc
mov dword [esp + 0x80], 0
lea eax, [esp + 0x34]
push dword [esp + 8]
push eax
call fcn.00474070
add esp, 8
mov dword [esp + 0x38], 0x5ebff0
mov dword [esp + 0x3c], 6
mov dword [esp + 0x6c], 2
mov dword [esp + 0x68], 0x60000
lea eax, [esp + 0x88]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], esi
movzx eax, byte [edi + 0x88]
and al, 7
cmp al, 2
jne 0x4a4fcb
push 0x15
push 0
push edi
call fcn.00478c90
add esp, 0xc
cwde
movzx ecx, word [edi + 0x84]
imul ecx, eax
sar ecx, 8
movsx ebx, bx
lea eax, [ecx + ebx]
movzx esi, word [edi + 0x82]
cdq
idiv esi
cwde
sub eax, ecx
mov ecx, eax
shr ecx, 0x1f
add ecx, eax
shr ecx, 1
add ebp, ecx
mov dword [esp + 0x10], ebp
sub ebx, eax
jmp 0x4a4fcf
mov dword [esp + 0x10], ebp
mov edx, ebx
movzx ecx, word [esp + 0xc]
xor eax, eax
cmp byte [esp + 0x18], 2
setne al
mov dword [esp + 0x20], eax
mov word [esp + 0xae], cx
mov ecx, dword [esp]
mov ebx, dword [ecx + 8]
mov eax, ebx
shr eax, 0xf
and eax, 0x7fff
dec eax
and ebx, 0x7fff
imul ebx, eax
movsx eax, dx
mov dword [esp + 0x14], eax
lea eax, [ecx + 2]
mov dword [esp + 0xc], eax
xor ebp, ebp
mov dword [esp + 0x24], edi
jmp 0x4a5035
push esi
push 0x1b
push edi
call fcn.0046e9e0
add esp, 0xc
inc ebp
cmp ebp, ebx
ja 0x4a4ee7
mov edi, ebx
mov ebx, dword [esp]
mov ecx, dword [ebx + 8]
mov eax, 0x7fff
and ecx, eax
mov eax, ebp
xor edx, edx
div ecx
mov dword [esp + 0x1c], eax
mov esi, edx
movsx edx, word [esp + 0x7e]
mov eax, dword [esp + 0x14]
sub eax, edx
imul eax, ebp
xor edx, edx
mov ecx, edi
div edi
add eax, dword [esp + 0x10]
mov word [esp + 0xac], ax
mov word [esp + 0xa8], ax
test esi, esi
je 0x4a5080
mov ebx, dword [esp + 0xc]
movzx eax, word [ebx]
mov edx, eax
neg edx
cmp byte [esp + 0x18], 2
cmove edx, eax
add dx, word [esp + 0xae]
mov word [esp + 0xaa], dx
lea eax, [esp + 0xac]
mov dword [esp + 0x58], eax
lea eax, [esp + 0xa8]
mov dword [esp + 0x5c], eax
mov edi, dword [esp + 0x24]
movzx eax, byte [edi + 0x88]
and al, 7
cmp al, 3
mov ebx, ecx
mov ecx, dword [esp + 0x1c]
jne 0x4a50ea
mov ecx, dword [esp + 0x20]
movsx eax, word [edi + ecx*2 + 0x78]
movsx ecx, word [edi + ecx*2 + 0x74]
push eax
push ecx
push ebx
push 0
push ebp
call fcn.004ae8e0
add esp, 0x14
mov ecx, eax
mov dword [esp + 0x74], ecx
test esi, esi
lea esi, [esp + 0x34]
jne 0x4a5103
mov eax, dword [esp]
test byte [eax + 0xb], 0x40
jne 0x4a518d
mov dword [esp + 0x48], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
push esi
push 0x1a
push edi
call fcn.0046e9e0
add esp, 0xc
movsx ecx, word [esp + 0xac]
movzx eax, word [esp + 0x7e]
mov edx, eax
shr edx, 0xf
add edx, eax
movsx eax, dx
sar eax, 1
add ecx, eax
movsx edx, word [edi + 0x14]
cmp ecx, edx
jl 0x4a5020
movsx ecx, word [esp + 0xa8]
sub ecx, eax
movsx eax, word [edi + 0x18]
cmp ecx, eax
jg 0x4a5020
lea eax, [esp + 0xa8]
push eax
lea eax, [esp + 0xb0]
push eax
lea eax, [esp + 0x84]
push eax
push dword [esp + 0x14]
call fcn.0047e300
add esp, 0x10
jmp 0x4a5020
push ecx
push 0x6574ae
push 0x10
lea esi, [esp + 0xbc]
push esi
call fcn.004af600
add esp, 0x10
lea eax, [esp + 0x88]
mov dword [esp + 0x48], eax
mov dword [esp + 0x60], esi
lea esi, [esp + 0x34]
mov dword [esp + 0x64], 0x10
push esi
push 0x1a
push edi
call fcn.0046e9e0
add esp, 0xc
movsx eax, word [esp + 0x9a]
movsx ecx, word [esp + 0x9c]
push 0
push 0x1fff
push eax
push ecx
push dword [esp + 0x98]
push dword [esp + 0x74]
lea eax, [esp + 0x48]
push eax
call fcn.004b1fa0
add esp, 0x1c
mov edx, dword [esp + 0xa8]
movzx eax, word [esp + 0x30]
mov ecx, eax
shr ecx, 0xf
add ecx, eax
movsx ecx, cx
sar ecx, 1
mov eax, edx
sub eax, ecx
add ecx, edx
mov word [esp + 0x28], ax
mov word [esp + 0x2c], cx
movzx edx, word [esp + 0xaa]
cmp byte [esp + 0x18], 2
je 0x4a5253
sub edx, dword [esp + 4]
mov word [esp + 0x2e], dx
sub dx, word [esp + 0x32]
mov word [esp + 0x2a], dx
cmp cx, word [edi + 0x14]
jl 0x4a5127
jmp 0x4a5270
add edx, dword [esp + 4]
mov word [esp + 0x2a], dx
add dx, word [esp + 0x32]
mov word [esp + 0x2e], dx
cmp cx, word [edi + 0x14]
jl 0x4a5127
cmp ax, word [edi + 0x18]
jg 0x4a5127
push 0
push dword [esp + 0x64]
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x94]
push eax
push dword [esp + 0x18]
call fcn.0047d7c0
add esp, 0x14
jmp 0x4a5127