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

Disassembly:
push 0xffffffffffffffff
push 0x4ac527
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c2020]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov edi, ecx
test byte [0x7e9c98], 1
fldz
jne 0x49f4ec
or dword [0x7e9c98], 1
fst dword [0x7e9c8c]
fst dword [0x7e9c90]
push 0x4ae640
fstp dword [0x7e9c94]
call fcn.0047ec57
add esp, 4
jmp 0x49f4ee
fstp st(0)
mov eax, 2
test byte [0x7e9c98], al
jne 0x49f531
or dword [0x7e9c98], eax
push 0x496830
push 0x496820
push 4
push 0xc
push 0x7e9c5c
mov dword [esp + 0x80], 0
call fcn.0047e83c
push 0x4ae620
call fcn.0047ec57
add esp, 4
cmp dword [edi + 0x24], 0
jne 0x49f541
mov eax, 8
jmp 0x49f8c8
mov eax, dword [esp + 0x74]
push 0x4b8a88
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
mov ebp, eax
add esp, 8
mov dword [esp + 0x74], ebp
test ebp, ebp
jne 0x49f566
lea eax, [ebp + 4]
jmp 0x49f8c8
mov ebx, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
push ebx
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.0045c130
fld dword [eax]
fstp dword [0x7e9c8c]
push str.3_0__facets_n
fld dword [eax + 4]
push ebp
fstp dword [0x7e9c90]
fld dword [eax + 8]
fstp dword [0x7e9c94]
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0x14
cmp dword [edi + 0x18], 0
mov dword [esp + 0x14], 0
jle 0x49f75f
xor edx, edx
mov dword [esp + 0x78], edx
jmp 0x49f5c4
mov edx, dword [esp + 0x78]
mov eax, dword [edi + 0x24]
fld dword [eax + edx + 4]
add eax, edx
fmul dword [0x7e9c90]
mov ecx, dword [eax + 0xc]
fld dword [eax]
mov esi, dword [eax + 0x10]
fmul dword [0x7e9c8c]
mov ebp, dword [eax + 0x14]
faddp st(1)
fld dword [eax + 8]
fmul dword [0x7e9c94]
faddp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fcomp dword [0x4af350]
fnstsw ax
test ah, 0x41
mov eax, dword [edi + 0x24]
jne 0x49f695
mov byte [edx + eax + 0x18], 1
mov edx, dword [esp + 0x7c]
lea eax, [ecx + ecx*2]
mov ecx, dword [edi + 0x20]
push edx
lea edx, [ecx + eax*4]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00497f70
fld dword [eax]
mov ecx, dword [esp + 0x88]
fstp dword [0x7e9c5c]
fld dword [eax + 4]
push ecx
fstp dword [0x7e9c60]
lea edx, [esi + esi*2]
fld dword [eax + 8]
fstp dword [0x7e9c64]
mov eax, dword [edi + 0x20]
lea ecx, [eax + edx*4]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.00497f70
fld dword [eax]
fstp dword [0x7e9c68]
lea ecx, [ebp + ebp*2]
fld dword [eax + 4]
fstp dword [0x7e9c6c]
fld dword [eax + 8]
mov eax, dword [esp + 0x94]
fstp dword [0x7e9c70]
mov edx, dword [edi + 0x20]
push eax
lea eax, [edx + ecx*4]
push eax
lea ecx, [esp + 0x54]
push ecx
jmp 0x49f709
mov byte [edx + eax + 0x18], 0
mov edx, dword [edi + 0x20]
lea ecx, [ecx + ecx*2]
lea eax, [edx + ecx*4]
push ebx
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.00497f70
fld dword [eax]
fstp dword [0x7e9c5c]
lea edx, [esi + esi*2]
fld dword [eax + 4]
push ebx
fstp dword [0x7e9c60]
fld dword [eax + 8]
fstp dword [0x7e9c64]
mov eax, dword [edi + 0x20]
lea ecx, [eax + edx*4]
push ecx
lea edx, [esp + 0x60]
push edx
call fcn.00497f70
fld dword [eax]
fstp dword [0x7e9c68]
push ebx
fld dword [eax + 4]
fstp dword [0x7e9c6c]
fld dword [eax + 8]
lea eax, [ebp + ebp*2]
fstp dword [0x7e9c70]
mov ecx, dword [edi + 0x20]
lea edx, [ecx + eax*4]
push edx
lea eax, [esp + 0x78]
push eax
call fcn.00497f70
fld dword [eax]
mov esi, dword [esp + 0x98]
fstp dword [0x7e9c74]
fld dword [eax + 4]
add esp, 0x24
fstp dword [0x7e9c78]
mov ecx, 0x7e9c68
fld dword [eax + 8]
mov eax, 0x7e9c74
mov edx, 0x7e9c5c
fstp dword [0x7e9c7c]
call fcn.0049e660
mov eax, dword [esp + 0x14]
add dword [esp + 0x78], 0x58
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [edi + 0x18]
jl 0x49f5c0
mov ebp, esi
xor ecx, ecx
mov dword [esp + 0x78], ecx
cmp dword [edi + 0x1c], ecx
jle 0x49f8b0
mov dword [esp + 0x14], ecx
add ecx, dword [edi + 0x28]
mov esi, dword [edi + 0x24]
mov edx, dword [ecx + 8]
mov eax, dword [ecx + 0xc]
imul edx, edx, 0x58
mov dl, byte [edx + esi + 0x18]
imul eax, eax, 0x58
cmp dl, byte [eax + esi + 0x18]
je 0x49f893
mov eax, dword [ecx]
mov esi, dword [ecx + 4]
lea ebp, [eax + eax*2]
mov eax, dword [edi + 0x20]
add ebp, ebp
add ebp, ebp
push ebx
add eax, ebp
push eax
lea ecx, [esp + 0x60]
push ecx
call fcn.00497f70
fld dword [eax]
fstp dword [0x7e9c5c]
lea esi, [esi + esi*2]
fld dword [eax + 4]
add esi, esi
fstp dword [0x7e9c60]
add esi, esi
fld dword [eax + 8]
push ebx
fstp dword [0x7e9c64]
mov edx, dword [edi + 0x20]
add edx, esi
push edx
lea eax, [esp + 0x60]
push eax
call fcn.00497f70
fld dword [eax]
mov ecx, dword [esp + 0x94]
fstp dword [0x7e9c68]
fld dword [eax + 4]
push ecx
fstp dword [0x7e9c6c]
fld dword [eax + 8]
lea eax, [esp + 0x5c]
fstp dword [0x7e9c70]
mov edx, dword [edi + 0x20]
add edx, esi
push edx
push eax
call fcn.00497f70
fld dword [eax]
mov ecx, dword [esp + 0xa0]
fstp dword [0x7e9c74]
fld dword [eax + 4]
push ecx
fstp dword [0x7e9c78]
fld dword [eax + 8]
lea eax, [esp + 0x5c]
fstp dword [0x7e9c7c]
mov edx, dword [edi + 0x20]
add edx, ebp
push edx
push eax
call fcn.00497f70
fld dword [eax]
mov esi, dword [esp + 0xa4]
fstp dword [0x7e9c80]
fld dword [eax + 4]
add esp, 0x30
fstp dword [0x7e9c84]
mov ecx, 0x7e9c68
fld dword [eax + 8]
mov eax, 0x7e9c74
mov edx, 0x7e9c5c
fstp dword [0x7e9c88]
call fcn.0049e660
mov eax, 0x7e9c80
mov ecx, 0x7e9c74
mov edx, 0x7e9c5c
call fcn.0049e660
mov ebp, esi
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x14]
inc eax
add ecx, 0x10
mov dword [esp + 0x78], eax
mov dword [esp + 0x14], ecx
cmp eax, dword [edi + 0x1c]
jl 0x49f772
push 0x4b8a9c
push ebp
call dword [sym.imp.MSVCR100.dll_fprintf]
push ebp
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 0xc
xor eax, eax
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0xc