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

Disassembly:
sub esp, 0x68
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x78]
xor ebp, ebp
cmp ecx, ebp
push edi
mov dword [esp + 0x10], esi
je 0x497d48
mov eax, dword [ecx]
call dword [eax]
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
jmp 0x497d5a
mov edx, dword [esp + 0x80]
cmp edx, ebp
je 0x4982f7
mov eax, dword [edx + 8]
cmp eax, ebp
je 0x4982f7
cmp ecx, ebp
je 0x497d78
mov edx, dword [ecx]
call dword [edx + 4]
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
jmp 0x497d83
cmp edx, ebp
je 0x4982f7
mov eax, dword [edx + 0xc]
cmp eax, ebp
je 0x4982f7
cmp ecx, ebp
je 0x497da0
mov eax, dword [ecx]
call dword [eax]
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
jmp 0x497dab
cmp edx, ebp
je 0x497da9
mov eax, dword [edx + 8]
jmp 0x497dab
xor eax, eax
mov edi, dword [esp + 0x84]
cmp eax, dword [edi + 8]
jne 0x497ed2
cmp ecx, ebp
je 0x497dd0
mov edx, dword [ecx]
call dword [edx]
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
jmp 0x497ddb
cmp edx, ebp
je 0x497dd9
mov eax, dword [edx + 8]
jmp 0x497ddb
xor eax, eax
mov ebx, dword [esp + 0x88]
mov esi, dword [ebx + 8]
sub esi, dword [ebx]
cmp esi, eax
jne 0x497ecc
cmp ecx, ebp
je 0x497e05
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
jmp 0x497e10
cmp edx, ebp
je 0x497e0e
mov eax, dword [edx + 0xc]
jmp 0x497e10
xor eax, eax
cmp eax, dword [edi + 0xc]
jne 0x497ecc
cmp ecx, ebp
je 0x497e2f
mov edx, dword [ecx]
call dword [edx + 4]
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
jmp 0x497e3a
cmp edx, ebp
je 0x497e38
mov eax, dword [edx + 0xc]
jmp 0x497e3a
xor eax, eax
mov esi, dword [ebx + 0xc]
sub esi, dword [ebx + 4]
cmp esi, eax
jne 0x497ecc
fld dword [esp + 0x8c]
fcomp dword [0x65c2f0]
fnstsw ax
test ah, 0x44
jp 0x497ecc
fld dword [esp + 0x90]
fcomp dword [0x65c2f0]
fnstsw ax
test ah, 0x44
jp 0x497ecc
fld dword [esp + 0x94]
fcomp dword [0x65c2f0]
fnstsw ax
test ah, 0x44
jp 0x497ecc
fld dword [esp + 0x98]
fcomp dword [0x65c2f0]
fnstsw ax
test ah, 0x44
jp 0x497ecc
mov eax, 0xffffffff
sub esp, 0x10
mov ebx, esp
mov dword [ebx], eax
or ecx, eax
mov dword [ebx + 4], ecx
or edx, eax
or esi, eax
mov dword [ebx + 8], edx
push edi
lea ecx, [esp + 0x90]
mov dword [ebx + 0xc], esi
call fcn.0049d020
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 0x20
mov esi, dword [esp + 0x10]
jmp 0x497ed9
mov ebx, dword [esp + 0x88]
mov al, byte [esi + 0x2c]
test al, al
je 0x497fea
cmp ecx, ebp
mov esi, dword [edi + 8]
je 0x497efc
mov eax, dword [ecx]
call dword [eax]
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
jmp 0x497f07
cmp edx, ebp
je 0x497f05
mov eax, dword [edx + 8]
jmp 0x497f07
xor eax, eax
add eax, eax
cmp esi, eax
jb 0x497fe6
cmp ecx, ebp
mov esi, dword [edi + 0xc]
je 0x497f2a
mov edx, dword [ecx]
call dword [edx + 4]
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
jmp 0x497f35
cmp edx, ebp
je 0x497f33
mov eax, dword [edx + 0xc]
jmp 0x497f35
xor eax, eax
add eax, eax
cmp esi, eax
jb 0x497fe6
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
shr eax, 1
shr ecx, 1
cmp eax, ebp
jne 0x497f52
mov eax, 1
cmp ecx, ebp
jne 0x497f5b
mov ecx, 1
push ebp
push ecx
push eax
lea ecx, [esp + 0x5c]
call fcn.004998c0
lea ecx, [esp + 0x50]
push edi
push ecx
call fcn.00498310
fld dword [esp + 0xa0]
fadd st(0), st(0)
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
sub esp, 8
fstp dword [esp + 0xc]
lea edx, [esp + 0x60]
fld dword [esp + 0xa4]
fadd st(0), st(0)
fstp dword [esp + 8]
fld dword [esp + 0xa0]
fmul qword [0x65c2f8]
fstp dword [esp + 4]
fld dword [esp + 0x9c]
fmul qword [0x65c2f8]
fstp dword [esp]
push ebx
push edx
push eax
push ecx
mov ecx, dword [esp + 0x30]
call fcn.00497d20
lea ecx, [esp + 0x50]
mov esi, eax
call fcn.00499ac0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 0x20
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x20]
cmp eax, 9
je 0x4980e9
cmp eax, 0xa
je 0x4980e9
mov bl, byte [esi + 0x2c]
mov esi, dword [esp + 0x10]
mov byte [esi + 0x2c], 0
mov eax, dword [edi + 8]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x98]
push eax
mov eax, dword [esp + 0x98]
push eax
mov eax, dword [esp + 0x98]
push eax
mov eax, dword [esp + 0x98]
push eax
mov eax, dword [esp + 0x98]
push eax
lea eax, [esp + 0x2c]
push eax
push edx
push ecx
mov ecx, esi
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
call fcn.004965e0
cmp eax, ebp
je 0x498067
mov byte [esi + 0x2c], bl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 0x20
lea ecx, [esp + 0x98]
push ecx
lea edx, [esp + 0x98]
push edx
mov ecx, esi
mov dword [esp + 0x9c], ebp
mov dword [esp + 0xa0], ebp
call fcn.00496590
mov esi, dword [esp + 0x94]
mov ebp, dword [esp + 0x98]
cmp esi, ebp
ja 0x4980c4
mov edi, edi
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x1c]
test eax, eax
jne 0x4980d7
mov eax, dword [edi + 4]
mov edx, dword [edi + 0x10]
imul eax, esi
push 0
lea eax, [edx + eax*4]
push eax
call fcn.004979b0
inc esi
cmp esi, ebp
jbe 0x4980a0
mov ecx, dword [esp + 0x10]
mov byte [ecx + 0x2c], bl
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 0x20
mov byte [ecx + 0x2c], bl
mov eax, 0xf4242
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 0x20
fld dword [esp + 0x94]
mov dword [esp + 0x28], 0x3f800000
fcomp dword [0x65c2f0]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0x3f800000
fnstsw ax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
test ah, 0x44
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0x3f800000
mov byte [esp + 0x4c], 1
jp 0x49818c
cmp ecx, ebp
je 0x49815f
mov edx, dword [ecx]
call dword [edx]
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
jmp 0x49816a
cmp edx, ebp
je 0x498168
mov eax, dword [edx + 8]
jmp 0x49816a
xor eax, eax
mov dword [esp + 0x10], eax
mov eax, dword [edi + 8]
mov dword [esp + 0x14], ebp
fild qword [esp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebp
fidiv dword [esp + 0x10]
fstp dword [esp + 0x94]
fld dword [esp + 0x98]
fcomp dword [0x65c2f0]
fnstsw ax
test ah, 0x44
jp 0x4981d8
cmp ecx, ebp
je 0x4981ab
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x4981b6
cmp edx, ebp
je 0x4981b4
mov eax, dword [edx + 0xc]
jmp 0x4981b6
xor eax, eax
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x14], ebp
fild qword [esp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebp
fidiv dword [esp + 0x10]
fstp dword [esp + 0x98]
fld dword [esp + 0x8c]
lea ecx, [esp + 0x50]
fchs
push ecx
fstp dword [esp + 0x5c]
lea ecx, [esp + 0x2c]
fld dword [esp + 0x94]
mov dword [esp + 0x54], 0x3f800000
fchs
mov dword [esp + 0x58], 0
fstp dword [esp + 0x68]
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0x3f800000
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0x3f800000
mov byte [esp + 0x78], 0
call fcn.0050ff10
fld dword [0x65c2f4]
fdiv dword [esp + 0x94]
lea edx, [esp + 0x50]
push edx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0x3f800000
mov byte [esp + 0x78], 0
fstp dword [esp + 0x54]
fld dword [0x65c2f4]
fdiv dword [esp + 0x9c]
fstp dword [esp + 0x64]
call fcn.0050ff10
mov eax, dword [esp + 0x80]
cmp eax, ebp
je 0x4982f7
cmp dword [esi + 0x20], 0xa
jne 0x4982d6
push ebp
push ebx
lea ecx, [esp + 0x30]
push ecx
push edi
push eax
call fcn.0051bdd0
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 0x20
push pe_nt_image_headers32
push ebp
push ebp
push ebx
lea edx, [esp + 0x38]
push edx
push edi
push eax
call fcn.0051bf80
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 0x20
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x68
ret 0x20