Function at 0x49a580
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x540909
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5a8cf0]
xor eax, esp
push eax
lea eax, [esp + 0xdc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x20], ebx
push 0x104
lea eax, [esp + 0x30]
mov ebp, 1
push eax
lea ecx, [esp + 0xfc]
mov dword [esp + 0xec], ebp
call fcn.0040d490
fld dword [0x55ee50]
fstp dword [esp + 0x90]
mov ecx, dword [esp + 0xf8]
fld dword [0x55ee4c]
mov edx, dword [esp + 0xfc]
fstp dword [esp + 0x94]
mov eax, dword [esp + 0x100]
fld dword [0x55ee48]
mov dword [esp + 0x80], ecx
fstp dword [esp + 0x98]
mov ecx, dword [esp + 0x104]
fld dword [0x55ee44]
mov dword [esp + 0x8c], ecx
fstp dword [esp + 0x9c]
lea ecx, [esp + 0x14]
fld dword [0x55ee40]
mov byte [esp + 0xe4], 2
fstp dword [esp + 0xa0]
mov dword [esp + 0x84], edx
fld dword [0x55ee3c]
mov dword [esp + 0x88], eax
fstp dword [esp + 0xa4]
mov dword [esp + 0x24], ebx
fld dword [0x55ee38]
mov dword [esp + 0x28], ebx
fstp dword [esp + 0xa8]
fld dword [0x55ee34]
fstp dword [esp + 0xac]
fld dword [0x55ee30]
fstp dword [esp + 0xb0]
fld dword [0x55ee2c]
fstp dword [esp + 0xb4]
fld dword [0x55ee28]
fstp dword [esp + 0xb8]
fld dword [0x557470]
fstp dword [esp + 0xbc]
fld1
fstp dword [esp + 0xc0]
fld dword [0x557474]
fstp dword [esp + 0xc4]
fld dword [0x55ee24]
fstp dword [esp + 0xc8]
fld dword [0x55ee20]
fstp dword [esp + 0xcc]
fld dword [0x55ee1c]
fstp dword [esp + 0xd0]
fld dword [0x55ee18]
fstp dword [esp + 0xd4]
fldz
fstp dword [esp + 0xd8]
call fcn.00488940
mov esi, dword [esp + 0x110]
mov edx, esi
neg edx
sbb edx, edx
add edx, 0x136
push edx
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0xec], 3
call fcn.00488dc0
push 0x48
lea ecx, [esp + 0x44]
push ebx
push ecx
mov byte [esp + 0xf8], 4
call fcn.00516810
add esp, 0x14
mov ecx, dword [0x5ac2d0]
mov eax, dword [esp + 0xf0]
lea edx, [esp + 0x90]
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], edx
mov dword [esp + 0x34], 0x4c
mov dword [esp + 0x38], eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebp
call fcn.00489670
lea ecx, [esp + 0x1c]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], 0x104
mov dword [esp + 0x60], ebx
call fcn.00488510
cmp esi, ebx
mov edi, dword [esp + 0x10c]
mov dword [esp + 0x64], eax
mov word [esp + 0x6c], bx
mov word [esp + 0x6e], bx
mov dword [esp + 0x70], 0x55ee0c
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x68], 0x80000
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x40], ebx
je 0x49a83f
lea edx, [esp + 0x18]
push 0xe1
push edx
call fcn.00488dc0
add esp, 8
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xe8], 5
call fcn.00488590
lea ecx, [esp + 0x18]
mov byte [esp + 0xe4], 4
call fcn.004884e0
lea eax, [esp + 0x80]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], 0x499ff0
mov dword [esp + 0x7c], 0xe5
mov dword [esp + 0x68], 0x80062
jmp 0x49a8d7
cmp edi, ebx
je 0x49a89a
lea ecx, [esp + 0x18]
push 0xf7
push ecx
call fcn.00488dc0
add esp, 8
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xe8], 6
call fcn.00488590
lea ecx, [esp + 0x18]
mov byte [esp + 0xe4], 4
call fcn.004884e0
lea edx, [esp + 0x24]
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], 0x49a1a0
mov dword [esp + 0x7c], 0x1da
mov dword [esp + 0x68], 0x81060
jmp 0x49a8d7
lea eax, [esp + 0x18]
push 0xf6
push eax
call fcn.00488dc0
add esp, 8
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xe8], 7
call fcn.00488590
lea ecx, [esp + 0x18]
mov byte [esp + 0xe4], 4
call fcn.004884e0
mov dword [esp + 0x68], 0x81000
lea ecx, [esp + 0x14]
call fcn.00488510
cmp esi, ebx
mov dword [esp + 0x40], eax
je 0x49a8f5
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.comdlg32.dll_GetSaveFileNameW]
jmp 0x49a91c
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.comdlg32.dll_GetOpenFileNameW]
cmp edi, ebx
je 0x49a91c
mov ecx, dword [esp + 0x114]
cmp ecx, ebx
je 0x49a91c
mov edx, dword [esp + 0x28]
fld dword [esp + edx*4 + 0x90]
fstp dword [ecx]
cmp eax, ebx
jne 0x49a939
call dword [sym.imp.comdlg32.dll_CommDlgExtendedError]
test eax, eax
je 0x49a9d9
push str.Error_opening_dialog_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0xf8]
call fcn.00488c60
mov eax, dword [esp + 0x108]
cmp eax, ebx
je 0x49a95d
mov ecx, dword [esp + 0x68]
and ecx, ebp
mov dword [eax], ecx
mov esi, dword [esp + 0xec]
lea edx, [esp + 0xf4]
push edx
mov ecx, esi
call fcn.004886b0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], ebp
mov byte [esp + 0xe4], 3
call fcn.004884e0
lea ecx, [esp + 0x14]
mov byte [esp + 0xe4], 2
call fcn.004884e0
lea ecx, [esp + 0x2c]
mov byte [esp + 0xe4], 1
call fcn.00489940
lea ecx, [esp + 0xf4]
mov byte [esp + 0xe4], bl
call fcn.004884e0
mov eax, esi
mov ecx, dword [esp + 0xdc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd4
ret
call fcn.004888c0
mov esi, dword [esp + 0xec]
push eax
mov ecx, esi
call fcn.004886b0
jmp 0x49a973