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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49d430
mov eax, dword fs:[0]
push eax
sub esp, 0x98
push ebx
push esi
push edi
mov eax, dword [str.Open_0_2]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x14], edi
mov ecx, dword [ebp + 8]
push 1
call fcn.0042c86c
mov edx, dword [edi + 0xbc]
mov eax, dword [edi + 0xb4]
mov esi, dword [edi + 0xb8]
mov ecx, dword [edi + 0xc0]
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x6c], edx
sub edx, eax
mov dword [esp + 0x28], edx
fild dword [esp + 0x28]
inc esi
cmp dword [edi + 0x100], 4
fldz
mov dword [esp + 0x64], eax
fsub st(1), st(0)
mov dword [esp + 0x70], ecx
mov dword [esp + 0x68], esi
jg 0x408754
mov esi, dword [edi + 0x1e38]
mov eax, esi
shl eax, 4
sub eax, esi
add eax, eax
add eax, eax
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
fdivp st(2)
fxch st(1)
fstp qword [esp + 0x7c]
fld qword [edi + ebx*8 + 0x1e48]
fsub qword [edi + ebx*8 + 0x1e98]
fucom st(1)
fnstsw ax
fstp st(1)
test ah, 0x44
jnp 0x408c8d
sub ecx, dword [esp + 0x68]
mov eax, edx
mov dword [esp + 0x24], ecx
fild dword [esp + 0x24]
cdq
idiv esi
fsub qword [0x4a5bb0]
fdivrp st(1)
xor ecx, ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], 0x4a5c70
fstp qword [esp + 0x54]
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
fstp qword [esp + 0x84]
lea eax, [ebx + ebx*4]
add eax, eax
lea edx, [eax + eax*8]
lea edx, [edi + edx*4 + 0xde8]
mov dword [esp + 0x28], edx
mov edx, eax
shl edx, 5
lea edx, [edx + edi + 0x144]
mov dword [esp + 0xb0], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x60], eax
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x18]
cmp dword [edx + 4], 2
jb 0x408708
lea edx, [eax + ecx]
cmp dword [edi + edx*4 + 0x1bd8], 0
je 0x408708
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
push eax
push 1
push 0
call dword [0x4a51a8]
push eax
lea ecx, [esp + 0x40]
call fcn.0042da21
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0042db9c
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
mov edi, dword [eax]
mov esi, dword [eax - 0x18]
mov ebx, dword [edi]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], esi
test esi, esi
je 0x408369
cmp esi, esi
je 0x40836e
call fcn.0046e4e0
cmp ebx, edi
je 0x408720
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov edi, dword [eax]
mov eax, dword [ecx - 0x18]
test esi, esi
je 0x408389
cmp esi, eax
je 0x408392
call fcn.0046e4e0
mov ecx, dword [esp + 0x18]
cmp ebx, edi
jne 0x4083b0
lea ecx, [esp + 0x1c]
call fcn.00404220
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
jmp 0x4083b0
mov edi, dword [ecx]
mov eax, dword [ecx - 0x18]
test esi, esi
je 0x4083bd
cmp esi, eax
je 0x4083c2
call fcn.0046e4e0
cmp ebx, edi
je 0x4086e6
test esi, esi
jne 0x40841d
call fcn.0046e4e0
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x4083df
call fcn.0046e4e0
mov eax, dword [esp + 0x14]
add eax, 0x1f10
lea edi, [ebx + 0x10]
push eax
mov ecx, edi
call fcn.004044e0
test al, al
jne 0x40842f
mov ecx, dword [esp + 0x14]
mov eax, dword [edi + 8]
add ecx, 0x1f10
cmp eax, dword [ecx + 8]
jne 0x408396
test eax, eax
jne 0x408421
fld qword [ecx]
fcomp qword [edi]
fnstsw ax
test ah, 0x44
jnp 0x40842f
jmp 0x408396
mov eax, dword [esi]
jmp 0x4083d5
cmp eax, 2
sete al
test al, al
je 0x408396
test esi, esi
jne 0x4084cc
call fcn.0046e4e0
cmp ebx, dword [esi + 0x18]
jne 0x408446
call fcn.0046e4e0
mov edx, dword [esp + 0x14]
add edx, 0x1f1c
push edx
mov ecx, edi
call fcn.00404570
test al, al
je 0x408396
lea ecx, [esp + 0x1c]
call fcn.00404190
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x4084d3
call fcn.0046e4e0
xor eax, eax
mov edi, dword [esp + 0x20]
cmp edi, dword [eax + 0x18]
jne 0x408486
call fcn.0046e4e0
mov ebx, dword [esp + 0x14]
add ebx, 0x1f10
push ebx
lea eax, [esp + 0x9c]
lea ecx, [edi + 0x10]
push eax
call fcn.00404610
fldz
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
fld qword [esp + 0x48]
fcom st(1)
mov dword [esp + 0x50], eax
fnstsw ax
test ah, 5
jp 0x4084d7
fld qword [0x4a5b20]
jmp 0x4084dd
mov esi, dword [esi]
jmp 0x40843c
mov eax, dword [esi]
jmp 0x408478
fld qword [0x4a5aa0]
faddp st(1)
fmul qword [0x4a5b28]
call fcn.0046d300
mov ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
shl edx, 4
sub edx, eax
add edx, edx
add edx, edx
sub ecx, edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x30], eax
fild dword [esp + 0x44]
fmul qword [esp + 0x7c]
fild dword [esp + 0x30]
fmul qword [esp + 0x84]
faddp st(2)
faddp st(1)
call fcn.0046d300
mov dword [esp + 0x74], eax
test esi, esi
jne 0x40856f
call fcn.0046e4e0
cmp edi, dword [esi + 0x18]
jne 0x408547
call fcn.0046e4e0
fldz
lea ecx, [esp + 0x1c]
fcomp qword [edi + 0x20]
fnstsw ax
test ah, 0x41
jp 0x408573
call fcn.00405a40
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 0xc]
fld qword [ecx + edx*8 + 0x1e48]
fsub qword [eax + 0x10]
jmp 0x40858b
mov esi, dword [esi]
jmp 0x40853d
call fcn.00405a40
fldz
fsub qword [eax + 0x10]
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x14]
fadd qword [eax + ecx*8 + 0x1e48]
fmul qword [esp + 0x54]
call fcn.0046d300
add eax, dword [esp + 0x68]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x78], eax
call fcn.00404220
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x4085fe
call fcn.0046e4e0
xor eax, eax
mov edi, dword [esp + 0x20]
cmp edi, dword [eax + 0x18]
jne 0x4085c2
call fcn.0046e4e0
push ebx
lea edx, [esp + 0x90]
lea ecx, [edi + 0x10]
push edx
call fcn.00404610
fldz
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
fld qword [esp + 0x48]
fcom st(1)
mov dword [esp + 0x50], eax
fnstsw ax
test ah, 5
jp 0x408602
fld qword [0x4a5b20]
jmp 0x408608
mov eax, dword [esi]
jmp 0x4085b4
fld qword [0x4a5aa0]
faddp st(1)
fmul qword [0x4a5b28]
call fcn.0046d300
mov ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
shl edx, 4
sub edx, eax
add edx, edx
add edx, edx
sub ecx, edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x30], eax
fild dword [esp + 0x44]
fmul qword [esp + 0x7c]
fild dword [esp + 0x30]
fmul qword [esp + 0x84]
faddp st(2)
faddp st(1)
call fcn.0046d300
mov dword [esp + 0x34], eax
test esi, esi
jne 0x40869a
call fcn.0046e4e0
cmp edi, dword [esi + 0x18]
jne 0x408672
call fcn.0046e4e0
fldz
lea ecx, [esp + 0x1c]
fcomp qword [edi + 0x20]
fnstsw ax
test ah, 0x41
jp 0x40869e
call fcn.00405a40
mov esi, dword [esp + 0x14]
mov ecx, dword [ebp + 0xc]
fld qword [esi + ecx*8 + 0x1e48]
fsub qword [eax + 0x10]
jmp 0x4086b6
mov esi, dword [esi]
jmp 0x408668
call fcn.00405a40
fldz
fsub qword [eax + 0x10]
mov esi, dword [esp + 0x14]
mov edx, dword [ebp + 0xc]
fadd qword [esi + edx*8 + 0x1e48]
fmul qword [esp + 0x54]
call fcn.0046d300
add eax, dword [esp + 0x68]
lea ecx, [esp + 0x74]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x34]
push eax
mov eax, dword [ebp + 8]
push ecx
lea edx, [esp + 0x6c]
push edx
push eax
mov ecx, esi
call fcn.00403880
jmp 0x408396
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0042db9c
lea ecx, [esp + 0x3c]
call fcn.0042da79
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x24]
add dword [esp + 0x28], 0x24
add dword [esp + 0x18], 0x20
inc ecx
cmp ecx, 0xa
mov dword [esp + 0x24], ecx
jl 0x408303
lea ecx, [esp + 0x3c]
mov dword [esp + 0xb0], 0xffffffff
mov dword [esp + 0x3c], 0x4a5c70
call fcn.004074a0
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, edi
mov esi, dword [eax + 0x1e38]
mov edi, esi
imul edi, edi, 0xe10
mov dword [esp + 0x2c], edi
fild dword [esp + 0x2c]
fdivp st(2)
fxch st(1)
fstp qword [esp + 0x7c]
fld qword [eax + ebx*8 + 0x1e48]
fsub qword [eax + ebx*8 + 0x1e98]
fucom st(1)
fnstsw ax
fstp st(1)
test ah, 0x44
jnp 0x408c8d
sub ecx, dword [esp + 0x68]
mov eax, edx
cdq
idiv esi
mov dword [esp + 0x2c], ecx
lea esi, [ebx + ebx*4]
add esi, esi
fild dword [esp + 0x2c]
lea edx, [esi + esi*8]
xor edi, edi
mov dword [esp + 0x24], edi
fsub qword [0x4a5bb0]
mov dword [esp + 0x60], esi
mov ebx, 0x4a5c70
fdivrp st(1)
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x14]
lea ecx, [eax + edx*4 + 0xde8]
mov edx, esi
shl edx, 5
lea eax, [edx + eax + 0x144]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x18], eax
fstp qword [esp + 0x54]
fild dword [esp + 0x2c]
fstp qword [esp + 0x84]
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], ebx
mov ecx, dword [esp + 0x18]
cmp dword [ecx + 4], 2
mov dword [esp + 0xb0], 1
jb 0x408c11
mov eax, dword [esp + 0x14]
lea edx, [edi + esi]
cmp dword [eax + edx*4 + 0x1bd8], 0
je 0x408c11
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
push eax
push 1
push 0
call dword [0x4a51a8]
push eax
lea ecx, [esp + 0x38]
call fcn.0042da21
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x34]
push edx
call fcn.0042db9c
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x18]
mov edi, dword [eax]
mov esi, dword [eax - 0x18]
mov ebx, dword [edi]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], esi
test esi, esi
je 0x408874
cmp esi, esi
je 0x408879
call fcn.0046e4e0
cmp ebx, edi
je 0x408c59
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov edi, dword [eax]
mov eax, dword [ecx - 0x18]
test esi, esi
je 0x408894
cmp esi, eax
je 0x40889d
call fcn.0046e4e0
mov ecx, dword [esp + 0x18]
cmp ebx, edi
jne 0x4088b6
lea ecx, [esp + 0x1c]
call fcn.00404220
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov edi, dword [ecx]
mov eax, dword [ecx - 0x18]
test esi, esi
je 0x4088c3
cmp esi, eax
je 0x4088c8
call fcn.0046e4e0
cmp ebx, edi
je 0x408bee
test esi, esi
jne 0x408920
call fcn.0046e4e0
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x4088e5
call fcn.0046e4e0
mov eax, dword [esp + 0x14]
add eax, 0x1f10
lea edi, [ebx + 0x10]
push eax
mov ecx, edi
call fcn.004044e0
test al, al
jne 0x408932
mov ecx, dword [esp + 0x14]
mov eax, dword [edi + 8]
add ecx, 0x1f10
cmp eax, dword [ecx + 8]
jne 0x4088a1
test eax, eax
jne 0x408924
fld qword [ecx]
fcomp qword [edi]
fnstsw ax
test ah, 0x44
jnp 0x408932
jmp 0x4088a1
mov eax, dword [esi]
jmp 0x4088db
cmp eax, 2
sete al
test al, al
je 0x4088a1
test esi, esi
jne 0x4089cb
call fcn.0046e4e0
cmp ebx, dword [esi + 0x18]
jne 0x408949
call fcn.0046e4e0
mov ebx, dword [esp + 0x14]
lea eax, [ebx + 0x1f1c]
push eax
mov ecx, edi
call fcn.00404570
test al, al
je 0x4088a1
lea ecx, [esp + 0x1c]
call fcn.00404190
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x4089d2
call fcn.0046e4e0
xor eax, eax
mov edi, dword [esp + 0x20]
cmp edi, dword [eax + 0x18]
jne 0x408989
call fcn.0046e4e0
lea eax, [ebx + 0x1f10]
push eax
lea edx, [esp + 0x90]
lea ecx, [edi + 0x10]
push edx
call fcn.00404610
fldz
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
fld qword [esp + 0x48]
fcom st(1)
mov dword [esp + 0x50], eax
fnstsw ax
test ah, 5
jp 0x4089d6
fld qword [0x4a5b20]
jmp 0x4089dc
mov esi, dword [esi]
jmp 0x40893f
mov eax, dword [esi]
jmp 0x40897b
fld qword [0x4a5aa0]
faddp st(1)
fmul qword [0x4a5b28]
call fcn.0046d300
mov ecx, eax
mov eax, 0x91a2b3c5
imul ecx
add edx, ecx
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x28], eax
imul eax, eax, 0xe10
sub ecx, eax
mov dword [esp + 0x2c], ecx
fild dword [esp + 0x2c]
fmul qword [esp + 0x7c]
fild dword [esp + 0x28]
fmul qword [esp + 0x84]
faddp st(2)
faddp st(1)
call fcn.0046d300
mov dword [esp + 0x3c], eax
test esi, esi
jne 0x408a69
call fcn.0046e4e0
cmp edi, dword [esi + 0x18]
jne 0x408a41
call fcn.0046e4e0
fldz
lea ecx, [esp + 0x1c]
fcomp qword [edi + 0x20]
fnstsw ax
test ah, 0x41
jp 0x408a6d
call fcn.00405a40
mov ebx, dword [ebp + 0xc]
mov ecx, dword [esp + 0x14]
fld qword [ecx + ebx*8 + 0x1e48]
fsub qword [eax + 0x10]
jmp 0x408a8c
mov esi, dword [esi]
jmp 0x408a37
call fcn.00405a40
fld qword [eax + 0x10]
mov ebx, dword [ebp + 0xc]
mov eax, dword [esp + 0x14]
fadd qword [eax + ebx*8 + 0x1e98]
fadd qword [eax + ebx*8 + 0x1e48]
fabs
fmul qword [esp + 0x54]
call fcn.0046d300
add eax, dword [esp + 0x68]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], eax
call fcn.00404220
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x408b08
call fcn.0046e4e0
xor eax, eax
mov edi, dword [esp + 0x20]
cmp edi, dword [eax + 0x18]
jne 0x408ac3
call fcn.0046e4e0
mov eax, dword [esp + 0x14]
add eax, 0x1f10
push eax
lea edx, [esp + 0x9c]
lea ecx, [edi + 0x10]
push edx
call fcn.00404610
fldz
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
fld qword [esp + 0x48]
fcom st(1)
mov dword [esp + 0x50], eax
fnstsw ax
test ah, 5
jp 0x408b0c
fld qword [0x4a5b20]
jmp 0x408b12
mov eax, dword [esi]
jmp 0x408ab5
fld qword [0x4a5aa0]
faddp st(1)
fmul qword [0x4a5b28]
call fcn.0046d300
mov ecx, eax
mov eax, 0x91a2b3c5
imul ecx
add edx, ecx
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x28], eax
imul eax, eax, 0xe10
sub ecx, eax
mov dword [esp + 0x2c], ecx
fild dword [esp + 0x2c]
fmul qword [esp + 0x7c]
fild dword [esp + 0x28]
fmul qword [esp + 0x84]
faddp st(2)
faddp st(1)
call fcn.0046d300
mov dword [esp + 0x74], eax
test esi, esi
jne 0x408b9c
call fcn.0046e4e0
cmp edi, dword [esi + 0x18]
jne 0x408b77
call fcn.0046e4e0
fldz
lea ecx, [esp + 0x1c]
fcomp qword [edi + 0x20]
fnstsw ax
test ah, 0x41
jp 0x408ba0
call fcn.00405a40
mov ecx, dword [esp + 0x14]
fld qword [ecx + ebx*8 + 0x1e48]
fsub qword [eax + 0x10]
jmp 0x408bbc
mov esi, dword [esi]
jmp 0x408b6d
call fcn.00405a40
fld qword [eax + 0x10]
mov eax, dword [esp + 0x14]
fadd qword [eax + ebx*8 + 0x1e98]
fadd qword [eax + ebx*8 + 0x1e48]
fabs
fmul qword [esp + 0x54]
call fcn.0046d300
add eax, dword [esp + 0x68]
lea edx, [esp + 0x74]
push edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x20]
push edx
call fcn.00403880
jmp 0x4088a1
mov eax, dword [esp + 0x44]
mov ecx, dword [ebp + 8]
push eax
call fcn.0042db9c
lea ecx, [esp + 0x34]
call fcn.0042da79
mov esi, dword [esp + 0x60]
mov edi, dword [esp + 0x24]
mov ebx, 0x4a5c70
lea ecx, [esp + 0x34]
mov dword [esp + 0xb0], 0xffffffff
mov dword [esp + 0x34], ebx
call fcn.004074a0
add dword [esp + 0x30], 0x24
add dword [esp + 0x18], 0x20
inc edi
cmp edi, 0xa
mov dword [esp + 0x24], edi
jl 0x4087f3
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [esp + 0x34]
mov dword [esp + 0xb0], 0xffffffff
mov dword [esp + 0x34], 0x4a5c70
call fcn.004074a0
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
fstp st(0)
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8