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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x88
mov edi, dword [ebp + 8]
mov dword [esp + 8], ecx
xor ecx, ecx
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x50], edx
movzx eax, byte [edi + 0xc9]
mov ebx, esi
cmp al, 8
mov byte [esp + 7], al
mov eax, dword [edi + 0xcc]
sete cl
mov dword [esp + 0x10], eax
lea edx, [eax + ecx*8 + 4]
mov eax, dword [edi + 0xc4]
sub edx, eax
sub ebx, edx
lea edx, [edi + 0xa8]
mov edi, dword [edi + 0xf0]
mov dword [esp + 0x18], edi
lea edi, [edi + 8]
jb 0x4a5255
cmp ebx, eax
jae 0x4a5255
mov ebx, dword [esp + 0x10]
lea ecx, [ecx*8 + 4]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], edi
mov edi, esi
mov dword [esp + 0x64], 0
mov dword [esp + 0x14], 0
sub esi, ecx
not edi
add edi, ecx
add edi, ebx
mov ecx, dword [ebp + 8]
sub esi, ebx
xor ebx, ebx
mov dword [esp + 0x1c], edi
add eax, dword [ecx + 0xc0]
xor ecx, ecx
mov edi, eax
nop dword [eax]
movzx eax, byte [edi + esi]
cmp ecx, 0x3f
mov byte [esp + 0x10], al
jne 0x4a5211
cmp al, 2
jae 0x4a526e
movzx eax, byte [esp + 0x10]
xor edx, edx
mov dword [esp + 0xc], esi
mov esi, 0
and al, 0x7f
movzx eax, al
shld edx, eax, cl
shl eax, cl
test cl, 0x20
cmovne edx, eax
cmovne eax, esi
or ebx, edx
or dword [esp + 0x14], eax
cmp byte [esp + 0x10], 0
jns 0x4a5292
mov esi, dword [esp + 0xc]
dec dword [esp + 0x1c]
add ecx, 7
inc esi
jne 0x4a5200
xor eax, eax
mov dl, 0x13
jmp 0x4a5270
mov eax, dword [esp + 8]
mov dword [eax], 0x38
mov dword [eax + 4], edx
mov dword [eax + 8], edi
mov dword [eax + 0xc], 0
jmp 0x4a528a
mov dl, 6
mov ecx, dword [esp + 8]
mov dh, byte [esp + 0x10]
mov byte [ecx], dl
mov byte [ecx + 1], dh
mov dword [ecx + 4], 0
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
lea eax, [edi + eax + 1]
or ecx, ebx
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], edx
je 0x4a52f0
mov ecx, dword [esp + 0x18]
test ebx, ebx
jne 0x4a52f9
mov eax, dword [esp + 0x14]
dec eax
cmp eax, dword [ecx + 0x10]
jae 0x4a52f9
imul ebx, eax, 0x68
add ebx, dword [ecx + 0xc]
cmp byte [ebx + 0x62], 1
jne 0x4a52d4
mov dword [esp + 0x64], 1
cmp dword [ebx], 0
je 0x4a53a2
mov edi, dword [ebx + 0xc]
mov ebx, dword [ebx + 8]
test edi, edi
jne 0x4a53b9
jmp 0x4a557d
mov eax, dword [esp + 8]
mov byte [eax], 0x37
jmp 0x4a528a
mov eax, dword [ecx + 0x14]
mov dl, 0x12
test eax, eax
je 0x4a5270
mov ecx, dword [ecx + 0x18]
mov edi, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
movzx eax, word [eax + 0x4d6]
mov ebx, 0xffffffff
lea ecx, [eax*8]
mov dword [esp + 0x4c], eax
test ecx, ecx
je 0x4a537d
mov eax, dword [esp + 0x20]
mov esi, dword [eax + ebx*8 + 0xc]
mov edx, dword [eax + ebx*8 + 8]
xor eax, eax
mov dword [esp + 0x1c], esi
xor esi, dword [esp + 0xc]
mov dword [esp + 0x18], edx
xor edx, edi
or edx, esi
mov edx, dword [esp + 0xc]
setne al
cmp edi, dword [esp + 0x18]
sbb edx, dword [esp + 0x1c]
mov edx, 0xff
cmovb eax, edx
inc ebx
add ecx, 0xfffffff8
cmp al, 1
je 0x4a5330
movzx eax, al
test eax, eax
jne 0x4a5381
jmp 0x4a551c
mov ebx, dword [esp + 0x4c]
mov eax, dword [esp + 0x24]
sub eax, 1
jb 0x4a55d4
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
mov eax, dword [eax + ebx*4 + 0x4d8]
jmp 0x4a5315
mov edi, dword [ebx + 4]
cmp edi, 6
jae 0x4a55db
add ebx, 8
test edi, edi
je 0x4a557d
mov eax, dword [ebp + 8]
shl edi, 4
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0x2e
mov dword [esp + 0x14], 0
mov eax, dword [eax + 0xf4]
mov dword [esp + 0x10], eax
jmp 0x4a5421
lea ecx, [esp + 0x28]
lea edx, [esp + 0x68]
call fcn.004a15d0
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ecx
add ebx, 0x10
add edi, 0xfffffff0
je 0x4a5554
movsd xmm0, qword [ebx]
movsd xmm1, qword [ebx + 8]
mov eax, dword [esp + 0x5c]
lea esi, [esp + 0x28]
lea ecx, [esp + 0x68]
lea edx, [esp + 0x54]
movsd qword [esp + 0x30], xmm1
movsd qword [esp + 0x28], xmm0
push esi
push dword [eax + 0x20]
call fcn.0049f9e0
add esp, 8
mov eax, dword [esp + 0x68]
xor eax, 0x2e
or eax, dword [esp + 0x6c]
je 0x4a5536
movzx eax, word [esp + 0x78]
cmp eax, 0x46
jle 0x4a54c0
cmp eax, 0x47
je 0x4a53f0
cmp eax, 0x6e
je 0x4a5482
cmp eax, 0x2007
jne 0x4a5415
lea esi, [esp + 0x28]
lea edx, [esp + 0x68]
mov ecx, esi
call fcn.004a15d0
movzx eax, byte [esp + 7]
mov edx, dword [ebp + 0x14]
lea ecx, [esp + 0x38]
push esi
push dword [esp + 0x14]
push eax
call fcn.0049ea80
add esp, 0xc
cmp byte [esp + 0x38], 0x4b
jne 0x4a5415
jmp 0x4a5590
cmp eax, 3
je 0x4a54d3
cmp eax, 0x31
je 0x4a53f0
jmp 0x4a5415
lea esi, [esp + 0x28]
lea edx, [esp + 0x68]
mov ecx, esi
call fcn.004a15d0
movzx eax, byte [esp + 7]
mov edx, dword [ebp + 0x14]
lea ecx, [esp + 0x38]
push esi
push dword [esp + 0x14]
push eax
call fcn.0049ea80
add esp, 0xc
cmp byte [esp + 0x38], 0x4b
jne 0x4a5415
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ecx
jmp 0x4a5415
mov ecx, dword [esp + 0x20]
imul eax, ebx, 0x68
lea ebx, [ecx + eax + 0x58]
cmp byte [ebx + 0x62], 1
je 0x4a52cc
jmp 0x4a52d4
movsd xmm0, qword [esp + 0x70]
mov eax, dword [esp + 8]
movsd xmm1, qword [esp + 0x78]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
jmp 0x4a528a
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4a556c
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x20]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
jmp 0x4a5588
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x14]
mov eax, edx
xor eax, 0x2e
or eax, ebx
jne 0x4a55aa
mov eax, dword [esp + 8]
mov dword [eax + 4], 0
mov byte [eax], 0x4b
jmp 0x4a528a
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x40]
mov dword [edx + 4], eax
mov dword [edx + 8], ecx
mov byte [edx], 0x4b
jmp 0x4a528a
mov esi, dword [ebp + 0x18]
movzx eax, byte [esp + 0x50]
mov ecx, dword [esp + 8]
dec esi
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
push eax
push dword [esp + 0x30]
push ebx
call fcn.004a4e60
add esp, 0x1c
jmp 0x4a528a
mov dl, 0x12
jmp 0x4a5270
mov ecx, edi
mov edx, 5
push 0x579f94
call fcn.0046a750
nop dword [eax]