Function at 0x481590
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 eax, dword [ebp + 8]
mov dword [esp + 0x50], edx
xor ebx, ebx
movzx edx, byte [eax + 0xc9]
mov esi, dword [eax + 0xc4]
cmp dl, 8
mov byte [esp + 0xb], dl
mov edx, dword [eax + 0xcc]
mov dword [esp + 0x14], esi
sete bl
mov dword [esp + 0x10], edx
lea edx, [edx + ebx*8 + 4]
sub edx, esi
mov esi, dword [ebp + 0xc]
mov edi, esi
sub edi, edx
lea edx, [eax + 0xa8]
mov eax, dword [eax + 0xf0]
mov dword [esp + 4], edx
lea edx, [eax + 8]
mov dword [esp + 0x1c], edx
jb 0x4816b5
cmp edi, dword [esp + 0x14]
jae 0x4816b5
mov dword [esp + 0x18], eax
mov eax, dword [esp + 4]
mov dword [esp + 0xc], ecx
lea ecx, [ebx*8 + 4]
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x10], 0
mov dword [esp + 0x5c], eax
mov eax, esi
lea edx, [ecx + ebx]
sub esi, ecx
xor ecx, ecx
not eax
sub esi, ebx
xor ebx, ebx
add eax, edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], 0
add edi, dword [eax + 0xc0]
nop word cs:[eax + eax]
movzx eax, byte [edi + esi]
cmp ecx, 0x3f
mov byte [esp + 0x14], al
jne 0x481671
cmp al, 2
jae 0x4816d2
movzx eax, byte [esp + 0x14]
xor edx, edx
mov dword [esp + 4], 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 + 0x10], eax
cmp byte [esp + 0x14], 0
jns 0x4816f6
mov esi, dword [esp + 4]
dec dword [esp + 0x20]
add ecx, 7
inc esi
jne 0x481660
xor eax, eax
mov dl, 0x13
jmp 0x4816d4
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x1c]
mov dword [ecx], 0x38
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], 0
jmp 0x4816ee
mov dl, 6
mov ecx, dword [esp + 0xc]
mov dh, byte [esp + 0x14]
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 + 4]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
lea eax, [edi + eax + 1]
or ecx, ebx
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], edx
je 0x4818b6
mov ecx, dword [esp + 0xc]
test ebx, ebx
jne 0x4818c2
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
dec eax
cmp eax, dword [edx + 0x10]
jae 0x4818c2
mov edx, dword [esp + 0x1c]
imul ecx, eax, 0x68
add ecx, dword [edx]
cmp byte [ecx + 0x62], 1
jne 0x48174b
mov dword [esp + 0x64], 1
call fcn.00456370
test edx, edx
je 0x4819d5
mov edi, eax
mov eax, dword [ebp + 8]
mov ebx, edx
mov dword [esp + 0x1c], 0
mov dword [esp + 4], 0x2e
mov dword [esp + 0x10], 0
shl ebx, 4
mov eax, dword [eax + 0xf4]
mov dword [esp + 0x14], eax
jmp 0x4817cf
cmp eax, 3
je 0x48186d
cmp eax, 0x31
jne 0x4817c3
lea ecx, [esp + 0x28]
lea edx, [esp + 0x68]
call fcn.0047da20
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [esp + 4], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], ecx
add edi, 0x10
add ebx, 0xfffffff0
je 0x4819a7
movsd xmm0, qword [edi]
movsd xmm1, qword [edi + 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.0047bea0
add esp, 8
mov eax, dword [esp + 0x68]
xor eax, 0x2e
or eax, dword [esp + 0x6c]
je 0x481989
movzx eax, word [esp + 0x78]
cmp eax, 0x46
jle 0x481790
cmp eax, 0x47
je 0x48179e
cmp eax, 0x6e
je 0x481834
cmp eax, 0x2007
jne 0x4817c3
lea esi, [esp + 0x28]
lea edx, [esp + 0x68]
mov ecx, esi
call fcn.0047da20
movzx eax, byte [esp + 0xb]
mov edx, dword [ebp + 0x14]
lea ecx, [esp + 0x38]
push esi
push dword [esp + 0x18]
push eax
call fcn.0047afc0
add esp, 0xc
cmp byte [esp + 0x38], 0x4b
jne 0x4817c3
jmp 0x4819e8
lea esi, [esp + 0x28]
lea edx, [esp + 0x68]
mov ecx, esi
call fcn.0047da20
movzx eax, byte [esp + 0xb]
mov edx, dword [ebp + 0x14]
lea ecx, [esp + 0x38]
push esi
push dword [esp + 0x18]
push eax
call fcn.0047afc0
add esp, 0xc
cmp byte [esp + 0x38], 0x4b
jne 0x4817c3
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
jmp 0x4817c3
mov eax, dword [esp + 0xc]
mov byte [eax], 0x37
jmp 0x4816ee
mov eax, dword [esp + 0x18]
mov dl, 0x12
mov esi, dword [eax + 0x14]
test esi, esi
je 0x4819bf
mov eax, dword [eax + 0x18]
mov edi, dword [esp + 0x10]
mov dword [esp + 4], ebx
mov dword [esp + 0x24], eax
movzx eax, word [esi + 0x4d6]
mov ebx, 0xffffffff
mov dword [esp + 0x18], esi
lea ecx, [eax*8]
mov dword [esp + 0x4c], eax
nop dword [eax]
test ecx, ecx
je 0x48194a
mov eax, dword [esp + 0x18]
mov esi, dword [eax + ebx*8 + 0xc]
mov edx, dword [eax + ebx*8 + 8]
xor eax, eax
mov dword [esp + 0x20], esi
xor esi, dword [esp + 4]
mov dword [esp + 0x1c], edx
xor edx, edi
or edx, esi
mov edx, dword [esp + 4]
setne al
cmp edi, dword [esp + 0x1c]
sbb edx, dword [esp + 0x20]
mov edx, 0xff
cmovb eax, edx
inc ebx
add ecx, 0xfffffff8
cmp al, 1
je 0x481900
movzx eax, al
test eax, eax
je 0x48196f
jmp 0x48194e
mov ebx, dword [esp + 0x4c]
mov eax, dword [esp + 0x24]
sub eax, 1
jb 0x481a2c
mov esi, dword [esp + 0x18]
mov dword [esp + 0x24], eax
mov esi, dword [esi + ebx*4 + 0x4d8]
jmp 0x4818e2
mov ecx, dword [esp + 0x18]
imul eax, ebx, 0x68
lea ecx, [ecx + eax + 0x58]
cmp byte [ecx + 0x62], 1
je 0x481743
jmp 0x48174b
movsd xmm0, qword [esp + 0x70]
mov eax, dword [esp + 0xc]
movsd xmm1, qword [esp + 0x78]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
jmp 0x4816ee
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4819c4
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x18]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
jmp 0x4819e0
jmp 0x4816d8
mov edx, dword [esp + 4]
mov ebx, dword [esp + 0x10]
mov eax, edx
xor eax, 0x2e
or eax, ebx
jne 0x481a02
mov eax, dword [esp + 0xc]
mov dword [eax + 4], 0
mov byte [eax], 0x4b
jmp 0x4816ee
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 4], eax
mov dword [edx + 8], ecx
mov byte [edx], 0x4b
jmp 0x4816ee
mov esi, dword [ebp + 0x18]
movzx eax, byte [esp + 0x50]
mov ecx, dword [esp + 0xc]
dec esi
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
push eax
push dword [esp + 0x34]
push ebx
call fcn.00481220
add esp, 0x1c
jmp 0x4816ee
mov ecx, dword [esp + 0xc]
mov dl, 0x12
jmp 0x4816d8