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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x497d60
push ecx
push ebx
push esi
push edi
mov ebx, 0x4d9da4
mov esi, 0x4d9d8c
xor eax, eax
push ebp
push 0x498899
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4d9fa8]
call fcn.00468770
mov edi, eax
mov dword [esi], edi
mov eax, edi
add eax, 0x20
call fcn.00468770
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
add eax, 0x24
call fcn.00468770
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
add eax, 8
call fcn.00468770
add eax, 8
call fcn.00468770
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
add eax, 0xc
call fcn.00468770
mov dword [esi + 0x10], eax
mov eax, dword [esi + 4]
add eax, 0xd8
call fcn.00468770
mov dword [ebx], eax
mov eax, dword [0x4d40d0]
cmp dword [eax], 1
sbb eax, eax
inc eax
test al, al
jne 0x497e18
mov eax, dword [0x4d40d0]
mov dword [eax], 0xffffffff
mov eax, dword [0x4d4290]
mov eax, dword [eax]
mov edx, 0x4988b0
call fcn.00459680
mov eax, dword [0x4d4290]
mov eax, dword [eax]
xor edx, edx
call fcn.00459680
cmp dword [esi + 8], 0x400000
jge 0x497e2b
xor eax, eax
mov dword [ebx + 0x2c], eax
jmp 0x49887e
mov eax, dword [esi]
add eax, 0x24
call fcn.00468770
add eax, 0x130
call fcn.004687c8
test al, al
jne 0x497e4d
xor eax, eax
mov dword [ebx + 0x2c], eax
jmp 0x49887e
mov eax, dword [esi + 8]
add eax, 0x4c0
call fcn.00468770
lea edx, [ebp - 0xc]
call fcn.0046882c
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0x3c]
call fcn.00404f90
cmp dword [ebx + 0x3c], 0
setne al
neg al
sbb eax, eax
mov dword [ebx + 0x2c], eax
mov eax, dword [0x4d9fe0]
call fcn.00468770
dec eax
sete al
neg al
sbb eax, eax
mov dword [ebx + 0x20], eax
mov eax, dword [esi + 8]
add eax, 0x1f0
call fcn.00468770
mov dword [ebx + 0x40], eax
mov eax, dword [esi + 8]
add eax, 0x3c
call fcn.00468808
fstp dword [ebx + 0x30]
wait
mov eax, dword [esi + 8]
add eax, 0x3c
add eax, 8
call fcn.00468808
fstp dword [ebx + 0x38]
wait
mov eax, dword [esi + 8]
add eax, 0x3c
add eax, 4
call fcn.00468808
fstp dword [ebx + 0x34]
wait
mov eax, dword [esi + 8]
add eax, 0x148
call fcn.00468770
mov edi, eax
cmp edi, 0x400000
jle 0x497f77
mov eax, dword [esi + 8]
add eax, 0x148
add eax, 4
call fcn.00468770
cmp eax, 0x50
jle 0x497f12
mov eax, 0x4988cc
call fcn.0049a434
jmp 0x49887e
lea eax, [ebx + 0x44]
mov edx, 0x4988e4
call fcn.00404f90
mov eax, dword [esi + 8]
add eax, 0x148
add eax, 4
call fcn.00468770
dec eax
test eax, eax
jl 0x497f77
inc eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
push dword [ebx + 0x44]
mov eax, dword [ebp - 4]
shl eax, 4
add eax, edi
call fcn.004687e8
movzx eax, ax
lea edx, [ebp - 0x10]
call fcn.0040962c
push dword [ebp - 0x10]
push 0x4988e4
lea eax, [ebx + 0x44]
mov edx, 3
call fcn.004052d0
inc dword [ebp - 4]
dec dword [ebp - 8]
jne 0x497f3f
mov eax, dword [esi + 8]
add eax, 0x1304
call fcn.00468770
mov dword [ebx + 0x1f8], eax
mov eax, dword [esi + 8]
add eax, 0x9a4
call fcn.00468770
mov dword [ebx + 0x1fc], eax
mov eax, dword [esi + 8]
add eax, 0x11b4
call fcn.00468770
add eax, 0x60
call fcn.00468770
mov dword [ebx + 0x200], eax
mov eax, dword [esi + 8]
add eax, 0x5c8
call fcn.004687c8
cmp al, 1
je 0x497fda
mov eax, dword [esi + 8]
add eax, 0x5c8
call fcn.004687c8
cmp al, 2
jne 0x497fe3
mov dword [ebx + 0x18], 0xffffffff
jmp 0x497fe8
xor eax, eax
mov dword [ebx + 0x18], eax
mov eax, dword [esi + 8]
add eax, 0x498
call fcn.004687c8
cmp al, 1
sete al
neg al
sbb eax, eax
mov dword [ebx + 0x48], eax
mov eax, dword [esi + 8]
add eax, 0x17c
call fcn.00468770
dec eax
sete al
neg al
sbb eax, eax
mov dword [ebx + 0x4c], eax
mov eax, dword [esi + 8]
add eax, 0x19c
call fcn.00468770
dec eax
sete al
neg al
sbb eax, eax
mov dword [ebx + 0x50], eax
mov eax, dword [esi + 8]
add eax, 0x178
call fcn.00468770
mov dword [ebx + 0x54], eax
mov eax, dword [esi + 8]
add eax, 0x4d0
call fcn.00468770
dec eax
sete al
neg al
sbb eax, eax
mov dword [ebx + 0x58], eax
mov eax, dword [esi + 8]
add eax, 0x4d4
call fcn.00468770
mov dword [ebx + 0x5c], eax
mov eax, dword [esi + 8]
add eax, 0x4f0
call fcn.00468770
mov dword [ebx + 0x60], eax
mov eax, dword [esi + 8]
add eax, 0x4f4
call fcn.00468770
mov dword [ebx + 0x64], eax
mov eax, dword [esi + 8]
add eax, 0x4fc
call fcn.00468770
mov dword [ebx + 0x68], eax
mov eax, dword [esi + 8]
add eax, 0x500
call fcn.00468770
mov dword [ebx + 0x6c], eax
mov eax, dword [esi + 8]
add eax, 0x51c
call fcn.00468770
mov dword [ebx + 0x70], eax
mov eax, dword [esi + 8]
add eax, 0x520
call fcn.00468770
mov dword [ebx + 0x74], eax
mov edx, dword [ebx + 0x70]
mov eax, dword [ebx + 0x68]
call fcn.00468694
mov dword [ebx + 0x78], eax
mov edx, dword [ebx + 0x74]
mov eax, dword [ebx + 0x6c]
call fcn.00468694
mov dword [ebx + 0x7c], eax
mov eax, dword [esi + 8]
add eax, 0x61c
call fcn.004687c8
cmp al, 1
sete al
neg al
sbb eax, eax
mov dword [ebx + 0x80], eax
mov eax, dword [esi + 8]
add eax, 0x69c
call fcn.00468770
add eax, 0xc
call fcn.00468770
mov edi, eax
mov eax, edi
call fcn.00468770
call fcn.00468770
lea edx, [ebp - 0x14]
call fcn.0046882c
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x84]
call fcn.00404f90
mov eax, dword [esi + 8]
add eax, 0x718
call fcn.00468770
mov dword [ebx + 0x98], eax
call fcn.00497bfc
mov eax, dword [esi + 8]
add eax, 0xaf8
call fcn.00468770
test eax, eax
sete al
neg al
sbb eax, eax
mov dword [ebx + 0xe4], eax
mov eax, dword [esi + 8]
add eax, 0xb00
call fcn.00468770
test eax, eax
sete al
neg al
sbb eax, eax
mov dword [ebx + 0xe8], eax
mov eax, dword [esi + 8]
add eax, 0xb48
call fcn.00468770
test eax, eax
sete al
neg al
sbb eax, eax
mov dword [ebx + 0xec], eax
mov eax, dword [esi + 8]
add eax, 0xba8
call fcn.00468770
test eax, eax
sete al
neg al
sbb eax, eax
mov dword [ebx + 0xf0], eax
mov eax, dword [esi + 8]
add eax, 0xab8
call fcn.00468770
test eax, eax
sete al
neg al
sbb eax, eax
mov dword [ebx + 0xf4], eax
mov eax, dword [esi + 8]
add eax, 0xbb0
call fcn.00468770
test eax, eax
sete al
neg al
sbb eax, eax
mov dword [ebx + 0xf8], eax
mov eax, dword [esi + 8]
add eax, 0xda4
call fcn.00468770
mov dword [ebx + 0xfc], eax
mov eax, dword [esi + 8]
add eax, 0xefc
call fcn.00468770
add eax, 0x14
call fcn.00468770
add eax, 4
call fcn.00468770
mov edi, eax
mov dword [ebx + 0x100], edi
test edi, edi
je 0x498240
xor eax, eax
mov dword [ebx + 0x1f0], eax
jmp 0x49824a
add dword [ebx + 0x1f0], 0x12c
mov eax, dword [esi + 8]
add eax, 0x11c4
call fcn.00468770
mov dword [ebx + 0x88], eax
mov eax, dword [esi + 8]
add eax, 0x11c8
call fcn.00468770
mov dword [ebx + 0x8c], eax
mov eax, dword [esi + 8]
add eax, 0x11cc
call fcn.00468770
mov dword [ebx + 0x90], eax
mov eax, dword [esi + 0x10]
add eax, 0x84
call fcn.00468770
mov dword [ebx + 0x1bc], eax
mov eax, dword [esi + 0x10]
add eax, 0xac
call fcn.00468770
mov edi, eax
mov dword [ebx + 0x1c0], edi
cmp edi, dword [0x4daa64]
je 0x4982c3
call fcn.004c3cb0
mov eax, dword [ebx + 0x1c0]
mov dword [0x4daa64], eax
mov eax, dword [esi + 8]
add eax, 0x1224
call fcn.00468770
test eax, eax
sete al
neg al
sbb eax, eax
mov dword [ebx + 0x1c4], eax
mov eax, dword [esi + 8]
add eax, 0x11e8
call fcn.00468770
mov edi, eax
lea eax, [edi + 8]
call fcn.00468770
mov dword [ebx + 0x108], eax
lea eax, [edi + 4]
call fcn.00468770
mov dword [ebx + 0x10c], eax
cmp edi, 0x400000
jle 0x498439
mov eax, edi
call fcn.00468770
mov dword [ebx + 0x110], eax
mov eax, dword [esi + 8]
add eax, 0xee8
call fcn.00468770
add eax, 0xc
call fcn.00468770
add eax, 0xc
call fcn.00468770
mov edx, dword [ebx + 0x110]
add edx, edx
add edx, edx
add eax, edx
call fcn.00468770
mov edi, eax
cmp edi, 0x400000
jle 0x49848f
mov dword [esi + 0x14], edi
lea eax, [edi + 0x129]
call fcn.00468770
mov dword [ebx + 0x114], eax
lea eax, [edi + 0x12d]
call fcn.00468770
mov dword [ebx + 0x118], eax
lea eax, [edi + 0x1d4]
call fcn.00468770
mov dword [ebx + 0x11c], eax
lea eax, [edi + 0x1d8]
call fcn.00468770
mov dword [ebx + 0x120], eax
mov eax, dword [esi]
add eax, 0x1c
call fcn.00468770
add eax, 0x6b4
call fcn.00468770
mov dword [ebx + 0x134], eax
lea eax, [edi + 0xee]
call fcn.00468770
mov dword [ebx + 0x130], eax
lea eax, [edi + 0x9c]
call fcn.00468770
add eax, 4
lea edx, [ebp - 0x18]
call fcn.0046882c
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x104]
call fcn.00404f90
lea eax, [edi + 0xd1]
call fcn.004687c8
movzx eax, al
mov dword [ebx + 0x12c], eax
mov edx, dword [ebx + 0x11c]
mov eax, dword [ebx + 0x114]
call fcn.00468694
mov dword [ebx + 0x124], eax
mov edx, dword [ebx + 0x120]
mov eax, dword [ebx + 0x118]
call fcn.00468694
mov dword [ebx + 0x128], eax
jmp 0x49848f
cmp dword [ebx + 0x11c], 0
je 0x49848f
mov dword [ebx + 0x110], 0xffffffff
xor eax, eax
mov dword [ebx + 0x114], eax
xor eax, eax
mov dword [ebx + 0x118], eax
xor eax, eax
mov dword [ebx + 0x11c], eax
xor eax, eax
mov dword [ebx + 0x120], eax
xor eax, eax
mov dword [ebx + 0x124], eax
xor eax, eax
mov dword [ebx + 0x128], eax
lea eax, [ebx + 0x104]
call fcn.00404f3c
xor eax, eax
mov dword [ebx + 0x12c], eax
mov eax, dword [esi + 8]
add eax, 0x638
call fcn.00468770
mov edi, eax
lea eax, [edi + 0x3c]
call fcn.00468770
test eax, eax
setg al
neg al
sbb eax, eax
mov dword [ebx + 0x1e8], eax
lea eax, [edi + 0x30]
call fcn.00468770
call fcn.00468770
add eax, 0x10
call fcn.00468770
cmp eax, dword [ebx + 0x40]
sete al
neg al
sbb eax, eax
mov dword [ebx + 0x1ec], eax
mov eax, dword [esi + 8]
add eax, 0x1240
call fcn.00468770
mov dword [ebx + 0x1c8], eax
cmp dword [ebx + 0x1c8], 0
setne al
neg al
sbb eax, eax
mov dword [ebx + 0x138], eax
cmp dword [ebx + 0x138], 0
je 0x498583
mov eax, dword [esi + 8]
add eax, 0x1248
call fcn.00468770
mov edi, eax
lea edx, [ebp - 0x1c]
lea eax, [edi + 4]
call fcn.0046882c
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x1cc]
call fcn.00404f90
lea edx, [ebp - 0x20]
lea eax, [edi + 0x124]
call fcn.0046882c
mov edx, dword [ebp - 0x20]
lea eax, [ebx + 0x1d0]
call fcn.00404f90
lea eax, [edi + 0x370]
call fcn.00468770
mov dword [ebx + 0x1d4], eax
lea eax, [edi + 0x354]
call fcn.00468770
mov dword [ebx + 0x1d8], eax
lea eax, [edi + 0x39c]
call fcn.00468770
mov dword [ebx + 0x1dc], eax
jmp 0x49858e
lea eax, [ebx + 0x1cc]
call fcn.00404f3c
mov eax, dword [0x4d9ffc]
call fcn.00468770
dec eax
sete al
neg al
sbb eax, eax
mov dword [ebx + 8], eax
cmp dword [ebx + 8], 0
je 0x4985e4
mov eax, dword [0x4d9ffc]
sub eax, 0xc
call fcn.00468770
mov edi, eax
lea eax, [edi + 0x10]
call fcn.00468770
mov dword [ebx + 0x10], eax
lea eax, [edi + 0x18]
call fcn.00468770
mov dword [ebx + 0x14], eax
lea edx, [ebp - 0x24]
mov eax, dword [ebx + 0x10]
call fcn.0049f0b4
mov edx, dword [ebp - 0x24]
lea eax, [ebx + 0xc]
call fcn.00404f90
mov eax, dword [esi + 8]
add eax, 0x638
call fcn.00468770
add eax, 0x3c
call fcn.00468770
mov dword [ebx + 4], eax
mov eax, dword [esi + 8]
add eax, 0x1428
call fcn.00468770
mov dword [ebx + 0x13c], eax
mov eax, dword [esi + 8]
add eax, 0x142c
call fcn.00468770
mov dword [ebx + 0x140], eax
mov eax, dword [esi + 8]
add eax, 0x1430
call fcn.00468770
mov dword [ebx + 0x144], eax
mov eax, dword [esi + 8]
add eax, 0x1434
call fcn.00468770
mov dword [ebx + 0x148], eax
mov eax, dword [esi + 8]
add eax, 0x143c
call fcn.00468770
mov dword [ebx + 0x14c], eax
mov eax, dword [esi + 8]
add eax, 0x143c
call fcn.00468770
mov dword [ebx + 0x150], eax
mov eax, dword [esi + 8]
add eax, 0x143c
call fcn.00468770
mov dword [ebx + 0x154], eax
mov eax, dword [esi + 8]
add eax, 0x143c
call fcn.00468770
mov dword [ebx + 0x158], eax
mov eax, dword [esi + 8]
add eax, 0x143c
call fcn.00468770
mov dword [ebx + 0x15c], eax
mov eax, dword [esi + 8]
add eax, 0x143c
call fcn.00468770
mov dword [ebx + 0x160], eax
mov eax, dword [esi + 8]
add eax, 0x143c
call fcn.00468770
mov dword [ebx + 0x164], eax
mov eax, dword [esi + 8]
add eax, 0x143c
call fcn.00468770
mov dword [ebx + 0x168], eax
mov eax, dword [esi + 8]
add eax, 0x143c
call fcn.00468770
mov dword [ebx + 0x16c], eax
mov eax, dword [esi + 8]
add eax, 0x143c
call fcn.00468770
mov dword [ebx + 0x170], eax
mov eax, dword [esi + 8]
add eax, 0x143c
call fcn.00468770
mov dword [ebx + 0x174], eax
mov eax, dword [esi + 8]
add eax, 0x143c
call fcn.00468770
mov dword [ebx + 0x178], eax
mov eax, dword [esi + 8]
add eax, 0x143c
call fcn.00468770
mov dword [ebx + 0x17c], eax
mov eax, dword [esi + 8]
add eax, 0x143c
call fcn.00468770
mov dword [ebx + 0x180], eax
mov eax, dword [esi + 8]
add eax, 0x15c0
call fcn.00468770
mov dword [ebx + 0x188], eax
mov eax, dword [esi + 8]
add eax, 0x15bc
call fcn.00468770
mov dword [ebx + 0x184], eax
mov eax, dword [esi + 8]
add eax, 0x1618
call fcn.00468770
mov dword [ebx + 0x190], eax
mov eax, dword [esi + 8]
add eax, 0x1614
call fcn.00468770
mov dword [ebx + 0x18c], eax
mov eax, dword [esi + 8]
add eax, 0x15e4
call fcn.00468770
mov dword [ebx + 0x194], eax
mov eax, dword [esi + 8]
add eax, 0x15ec
call fcn.00468770
mov dword [ebx + 0x198], eax
mov eax, dword [esi + 8]
add eax, 0x15f0
call fcn.00468808
fmul dword [0x4988e8]
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.00468b8c
mov dword [ebx + 0x19c], eax
mov eax, dword [esi + 8]
add eax, 0x15f4
call fcn.00468808
fmul dword [0x4988e8]
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.00468b8c
mov dword [ebx + 0x1a0], eax
mov eax, dword [esi + 8]
add eax, 0x15f8
call fcn.00468808
fmul dword [0x4988e8]
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.00468b8c
mov dword [ebx + 0x1a4], eax
mov eax, dword [esi + 8]
add eax, 0x15fc
call fcn.00468808
fmul dword [0x4988e8]
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.00468b8c
mov dword [ebx + 0x1a8], eax
mov eax, dword [esi + 8]
add eax, 0x1600
call fcn.00468770
mov dword [ebx + 0x1ac], eax
mov eax, dword [esi + 8]
add eax, 0x1604
call fcn.00468770
mov dword [ebx + 0x1b0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4988a0
lea eax, [ebp - 0x24]
mov edx, 7
call fcn.00404f60
ret