Function at 0x557560
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec
mov eax, dword [0x66e240]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov esi, 0x5d0238
push 0x236
mov ecx, esi
call fcn.004c005f
test eax, eax
je 0x5575ba
cvttss2si ecx, dword [eax + 0x904]
mov dword [ebp - 0xe4], ecx
cvttss2si ecx, dword [eax + 0x908]
mov dword [ebp - 0xe0], ecx
xor ecx, ecx
cmp dword [eax + 0xe], ecx
setne cl
mov dword [ebp - 0xdc], ecx
push 0x704
mov ecx, esi
call fcn.004c005f
test eax, eax
je 0x5575f4
cvttss2si ecx, dword [eax + 0x904]
mov dword [ebp - 0xd4], ecx
cvttss2si ecx, dword [eax + 0x908]
mov dword [ebp - 0xd0], ecx
xor ecx, ecx
cmp dword [eax + 0xe], ecx
setne cl
mov dword [ebp - 0xcc], ecx
push 0x6fa
mov ecx, esi
call fcn.004c005f
mov esi, eax
test esi, esi
je 0x557640
cvttss2si ecx, dword [esi + 0x904]
mov dword [ebp - 0xc4], ecx
cvttss2si ecx, dword [esi + 0x908]
mov dword [ebp - 0xc0], ecx
mov ecx, esi
call fcn.004f8905
test eax, eax
je 0x557637
xor eax, eax
cmp dword [esi + 0xe], eax
setne al
jmp 0x55763a
mov eax, dword [edi + 0x1d]
mov dword [ebp - 0xbc], eax
mov edi, 0x5d0238
push 0x22e
mov ecx, edi
call fcn.004c005f
mov edx, eax
xor esi, esi
test edx, edx
je 0x5576b2
cvttss2si ecx, dword [edx + 0x904]
mov dword [ebp - 0xb4], ecx
cvttss2si eax, dword [edx + 0x908]
mov dword [ebp - 0xb0], eax
xor eax, eax
cmp dword [edx + 0xe], esi
setne al
mov dword [ebp - 0xac], eax
movzx ecx, word [edx + 0x968]
xor edx, edx
inc edx
cmp cx, dx
jne 0x557697
or eax, 4
jmp 0x5576ac
push 2
pop edx
cmp cx, dx
jne 0x5576a4
or eax, 8
jmp 0x5576ac
cmp ecx, 3
jne 0x5576b2
or eax, 0x10
mov dword [ebp - 0xac], eax
push 0xe7
mov ecx, edi
call fcn.004c005f
test eax, eax
je 0x5576ff
cvttss2si ecx, dword [eax + 0x904]
mov dword [ebp - 0xa4], ecx
cvttss2si ecx, dword [eax + 0x908]
mov dword [ebp - 0xa0], ecx
xor ecx, ecx
cmp dword [eax + 0xe], esi
setne cl
mov dword [ebp - 0x9c], ecx
cmp dword [eax + 0xafe], esi
je 0x5576ff
push 2
pop eax
or ecx, eax
mov dword [ebp - 0x9c], ecx
push 0x155
mov ecx, edi
call fcn.004c005f
test eax, eax
je 0x557771
cvttss2si ecx, dword [eax + 0x904]
mov dword [ebp - 0x94], ecx
cvttss2si ecx, dword [eax + 0x908]
mov dword [ebp - 0x90], ecx
xor ecx, ecx
cmp dword [eax + 0xe], esi
setne cl
mov dword [ebp - 0x8c], ecx
mov edx, dword [eax + 0x23448]
cmp edx, 1
jne 0x557749
or ecx, 4
jmp 0x55775b
cmp edx, 2
jne 0x557753
or ecx, 8
jmp 0x55775b
cmp edx, 4
jne 0x557761
or ecx, 0x10
mov dword [ebp - 0x8c], ecx
mov ecx, eax
call fcn.0045fe14
movzx eax, al
mov dword [ebp - 0x88], eax
push 0x877
mov ecx, edi
call fcn.004c005f
test eax, eax
je 0x5577a9
cmp dword [eax + 0xe], esi
je 0x557792
or dword [ebp - 0x8c], 0x100
jmp 0x5577a9
mov eax, dword [ebp - 0x8c]
mov ecx, 0x100
test ecx, eax
je 0x5577a9
xor eax, ecx
mov dword [ebp - 0x8c], eax
push 0xed
mov ecx, edi
call fcn.004c005f
test eax, eax
je 0x5577ff
cvttss2si ecx, dword [eax + 0x904]
mov dword [ebp - 0x84], ecx
cvttss2si ecx, dword [eax + 0x908]
mov dword [ebp - 0x80], ecx
xor ecx, ecx
cmp dword [eax + 0xe], esi
setne cl
mov dword [ebp - 0x7c], ecx
mov al, byte [eax + 0x95b]
cmp al, 1
jne 0x5577ec
or ecx, 4
jmp 0x5577fc
cmp al, 2
jne 0x5577f5
or ecx, 8
jmp 0x5577fc
cmp al, 3
jne 0x5577ff
or ecx, 0x10
mov dword [ebp - 0x7c], ecx
push 0x5f
mov ecx, edi
call fcn.004c005f
test eax, eax
je 0x55782d
cvttss2si ecx, dword [eax + 0x904]
mov dword [ebp - 0x74], ecx
cvttss2si ecx, dword [eax + 0x908]
mov dword [ebp - 0x70], ecx
xor ecx, ecx
cmp dword [eax + 0xe], esi
setne cl
mov dword [ebp - 0x6c], ecx
push 0xc1
mov ecx, edi
call fcn.004c005f
mov edx, eax
test edx, edx
je 0x5578a8
cvttss2si ecx, dword [edx + 0x904]
mov dword [ebp - 0x64], ecx
cvttss2si ecx, dword [edx + 0x908]
mov dword [ebp - 0x60], ecx
xor ecx, ecx
cmp dword [edx + 0xe], esi
setne cl
mov dword [ebp - 0x5c], ecx
cmp byte [edx + 0x95b], 1
jne 0x557899
mov eax, dword [0x6a745c]
or ecx, 4
mov dword [ebp - 0x5c], ecx
mov al, byte [eax + 0x95b]
cmp al, 1
jne 0x557883
or ecx, 0x20
jmp 0x557896
cmp al, 2
jne 0x55788c
or ecx, 0x40
jmp 0x557896
cmp al, 3
jne 0x557899
or ecx, 0x80
mov dword [ebp - 0x5c], ecx
mov eax, dword [edx + 0x964]
mov eax, dword [eax + 0x9e6]
mov dword [ebp - 0x58], eax
push 0x5aa
mov ecx, edi
call fcn.004c005f
test eax, eax
je 0x557906
cvttss2si ecx, dword [eax + 0x904]
mov dword [ebp - 0x54], ecx
cvttss2si ecx, dword [eax + 0x908]
mov dword [ebp - 0x50], ecx
xor ecx, ecx
cmp dword [eax + 0xe], esi
setne cl
mov dword [ebp - 0x4c], ecx
cmp byte [eax + 0x95b], 1
jne 0x5578e8
or ecx, 4
mov dword [ebp - 0x4c], ecx
cmp byte [eax + 0x95b], 2
jne 0x5578f7
or ecx, 8
mov dword [ebp - 0x4c], ecx
cmp byte [eax + 0x95b], 3
jne 0x557906
or ecx, 0x10
mov dword [ebp - 0x4c], ecx
push 0x7a2
mov ecx, edi
call fcn.004c005f
test eax, eax
je 0x557937
cvttss2si ecx, dword [eax + 0x904]
mov dword [ebp - 0x44], ecx
cvttss2si ecx, dword [eax + 0x908]
mov dword [ebp - 0x40], ecx
xor ecx, ecx
cmp dword [eax + 0xe], esi
setne cl
mov dword [ebp - 0x3c], ecx
push 0x734
mov ecx, edi
call fcn.004c005f
test eax, eax
je 0x557972
cvttss2si ecx, dword [eax + 0x904]
mov dword [ebp - 0x34], ecx
cvttss2si ecx, dword [eax + 0x908]
mov dword [ebp - 0x30], ecx
cmp dword [eax + 0xe], esi
je 0x55796f
xor eax, eax
inc eax
mov dword [ebp - 0x2c], eax
mov dword [0x6a88f8], eax
jmp 0x557972
mov dword [ebp - 0x2c], esi
push 0x267
mov ecx, edi
call fcn.004c005f
test eax, eax
je 0x5579b4
cvttss2si ecx, dword [eax + 0x904]
mov dword [ebp - 0x24], ecx
cvttss2si eax, dword [eax + 0x908]
mov dword [ebp - 0x20], eax
xor eax, eax
cmp dword [0x6a7528], eax
setne al
mov dword [ebp - 0x1c], eax
xor eax, eax
cmp dword [0x6a7524], eax
setne al
mov dword [ebp - 0x18], eax
mov ecx, dword [0x6b52ac]
test ecx, ecx
je 0x5579dc
cvttss2si eax, dword [ecx + 0x904]
mov dword [ebp - 0x14], eax
cvttss2si eax, dword [ecx + 0x908]
mov dword [ebp - 0x10], eax
mov eax, dword [0x6b52a8]
mov dword [ebp - 8], eax
push esi
push 0x80
push 2
pop eax
push eax
push esi
push esi
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x557a3e
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0xe8]
push eax
push 4
lea eax, [ebp - 0xec]
mov dword [ebp - 0xec], 0x6111101
push eax
push edi
call esi
push 0
lea eax, [ebp - 0xe8]
push eax
push 0xe0
lea eax, [ebp - 0xe4]
push eax
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00560d94
mov esp, ebp
pop ebp
ret 4