Function at 0x5757f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf0
mov eax, dword [0xa37210]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov ecx, 0x80f0c0
push 0x1fb
call fcn.004bcb00
test eax, eax
je 0x575848
cvttss2si ecx, dword [eax + 0x81c]
mov dword [ebp - 0xe4], ecx
cvttss2si ecx, dword [eax + 0x820]
mov dword [ebp - 0xe0], ecx
xor ecx, ecx
cmp dword [eax + 0xe], ecx
setne cl
mov dword [ebp - 0xdc], ecx
push 0x587
mov ecx, 0x80f0c0
call fcn.004bcb00
test eax, eax
je 0x575885
cvttss2si ecx, dword [eax + 0x81c]
mov dword [ebp - 0xd4], ecx
cvttss2si ecx, dword [eax + 0x820]
mov dword [ebp - 0xd0], ecx
xor ecx, ecx
cmp dword [eax + 0xe], ecx
setne cl
mov dword [ebp - 0xcc], ecx
push 0x57d
mov ecx, 0x80f0c0
call fcn.004bcb00
mov esi, eax
test esi, esi
je 0x5758d4
cvttss2si ecx, dword [esi + 0x81c]
mov dword [ebp - 0xc4], ecx
cvttss2si ecx, dword [esi + 0x820]
mov dword [ebp - 0xc0], ecx
mov ecx, esi
call fcn.004fd530
test eax, eax
je 0x5758cb
xor eax, eax
cmp dword [esi + 0xe], eax
setne al
jmp 0x5758ce
mov eax, dword [edi + 0x1e]
mov dword [ebp - 0xbc], eax
push 0x1f3
mov ecx, 0x80f0c0
call fcn.004bcb00
test eax, eax
je 0x57593a
cvttss2si ecx, dword [eax + 0x81c]
mov dword [ebp - 0xb4], ecx
cvttss2si ecx, dword [eax + 0x820]
mov dword [ebp - 0xb0], ecx
xor ecx, ecx
cmp dword [eax + 0xe], ecx
setne cl
mov dword [ebp - 0xac], ecx
movzx eax, word [eax + 0x892]
cmp eax, 1
jne 0x575922
or ecx, 4
jmp 0x575934
cmp eax, 2
jne 0x57592c
or ecx, 8
jmp 0x575934
cmp eax, 3
jne 0x57593a
or ecx, 0x10
mov dword [ebp - 0xac], ecx
push 0xe0
mov ecx, 0x80f0c0
call fcn.004bcb00
test eax, eax
je 0x575989
cvttss2si ecx, dword [eax + 0x81c]
mov dword [ebp - 0xa4], ecx
cvttss2si ecx, dword [eax + 0x820]
mov dword [ebp - 0xa0], ecx
xor ecx, ecx
cmp dword [eax + 0xe], ecx
setne cl
mov dword [ebp - 0x9c], ecx
cmp dword [eax + 0x928], 0
je 0x575989
or ecx, 2
mov dword [ebp - 0x9c], ecx
push 0x119
mov ecx, 0x80f0c0
call fcn.004bcb00
test eax, eax
je 0x5759fe
cvttss2si ecx, dword [eax + 0x81c]
mov dword [ebp - 0x94], ecx
cvttss2si ecx, dword [eax + 0x820]
mov dword [ebp - 0x90], ecx
xor ecx, ecx
cmp dword [eax + 0xe], ecx
setne cl
mov dword [ebp - 0x8c], ecx
mov edx, dword [eax + 0x204a6]
cmp edx, 1
jne 0x5759d6
or ecx, 4
jmp 0x5759e8
cmp edx, 2
jne 0x5759e0
or ecx, 8
jmp 0x5759e8
cmp edx, 4
jne 0x5759ee
or ecx, 0x10
mov dword [ebp - 0x8c], ecx
mov ecx, eax
call fcn.00446ce0
movzx eax, al
mov dword [ebp - 0x88], eax
push 0x6f9
mov ecx, 0x80f0c0
call fcn.004bcb00
test eax, eax
je 0x575a3b
cmp dword [eax + 0xe], 0
je 0x575a23
or dword [ebp - 0x8c], 0x100
jmp 0x575a3b
mov eax, dword [ebp - 0x8c]
test eax, 0x100
je 0x575a3b
xor eax, 0x100
mov dword [ebp - 0x8c], eax
push 0xe6
mov ecx, 0x80f0c0
call fcn.004bcb00
test eax, eax
je 0x575a94
cvttss2si ecx, dword [eax + 0x81c]
mov dword [ebp - 0x84], ecx
cvttss2si ecx, dword [eax + 0x820]
mov dword [ebp - 0x80], ecx
xor ecx, ecx
cmp dword [eax + 0xe], ecx
setne cl
mov dword [ebp - 0x7c], ecx
mov al, byte [eax + 0x885]
cmp al, 1
jne 0x575a81
or ecx, 4
jmp 0x575a91
cmp al, 2
jne 0x575a8a
or ecx, 8
jmp 0x575a91
cmp al, 3
jne 0x575a94
or ecx, 0x10
mov dword [ebp - 0x7c], ecx
push 0x5e
mov ecx, 0x80f0c0
call fcn.004bcb00
test eax, eax
je 0x575ac5
cvttss2si ecx, dword [eax + 0x81c]
mov dword [ebp - 0x74], ecx
cvttss2si ecx, dword [eax + 0x820]
mov dword [ebp - 0x70], ecx
xor ecx, ecx
cmp dword [eax + 0xe], ecx
setne cl
mov dword [ebp - 0x6c], ecx
push 0xba
mov ecx, 0x80f0c0
call fcn.004bcb00
mov edx, eax
test edx, edx
je 0x575b43
cvttss2si ecx, dword [edx + 0x81c]
mov dword [ebp - 0x64], ecx
cvttss2si ecx, dword [edx + 0x820]
mov dword [ebp - 0x60], ecx
xor ecx, ecx
cmp dword [edx + 0xe], ecx
setne cl
mov dword [ebp - 0x5c], ecx
cmp byte [edx + 0x885], 1
jne 0x575b34
mov eax, dword [0xa653e4]
or ecx, 4
mov dword [ebp - 0x5c], ecx
mov al, byte [eax + 0x885]
cmp al, 1
jne 0x575b1e
or ecx, 0x20
jmp 0x575b31
cmp al, 2
jne 0x575b27
or ecx, 0x40
jmp 0x575b31
cmp al, 3
jne 0x575b34
or ecx, 0x80
mov dword [ebp - 0x5c], ecx
mov eax, dword [edx + 0x88e]
mov eax, dword [eax + 0x910]
mov dword [ebp - 0x58], eax
push 0x413
mov ecx, 0x80f0c0
call fcn.004bcb00
test eax, eax
je 0x575ba4
cvttss2si ecx, dword [eax + 0x81c]
mov dword [ebp - 0x54], ecx
cvttss2si ecx, dword [eax + 0x820]
mov dword [ebp - 0x50], ecx
xor ecx, ecx
cmp dword [eax + 0xe], ecx
setne cl
mov dword [ebp - 0x4c], ecx
cmp byte [eax + 0x885], 1
jne 0x575b86
or ecx, 4
mov dword [ebp - 0x4c], ecx
cmp byte [eax + 0x885], 2
jne 0x575b95
or ecx, 8
mov dword [ebp - 0x4c], ecx
cmp byte [eax + 0x885], 3
jne 0x575ba4
or ecx, 0x10
mov dword [ebp - 0x4c], ecx
push 0x627
mov ecx, 0x80f0c0
call fcn.004bcb00
test eax, eax
je 0x575bd8
cvttss2si ecx, dword [eax + 0x81c]
mov dword [ebp - 0x44], ecx
cvttss2si ecx, dword [eax + 0x820]
mov dword [ebp - 0x40], ecx
xor ecx, ecx
cmp dword [eax + 0xe], ecx
setne cl
mov dword [ebp - 0x3c], ecx
push 0x5b9
mov ecx, 0x80f0c0
call fcn.004bcb00
test eax, eax
je 0x575c21
cvttss2si ecx, dword [eax + 0x81c]
mov dword [ebp - 0x34], ecx
cvttss2si ecx, dword [eax + 0x820]
mov dword [ebp - 0x30], ecx
cmp dword [eax + 0xe], 0
je 0x575c1a
mov dword [ebp - 0x2c], 1
mov dword [0xa66828], 1
jmp 0x575c21
mov dword [ebp - 0x2c], 0
push 0x23f
mov ecx, 0x80f0c0
call fcn.004bcb00
test eax, eax
je 0x575c66
cvttss2si ecx, dword [eax + 0x81c]
mov dword [ebp - 0x24], ecx
cvttss2si eax, dword [eax + 0x820]
mov dword [ebp - 0x20], eax
xor eax, eax
cmp dword [0xa654b4], eax
setne al
mov dword [ebp - 0x1c], eax
xor eax, eax
cmp dword [0xa654b0], eax
setne al
mov dword [ebp - 0x18], eax
mov ecx, dword [0xa6b684]
test ecx, ecx
je 0x575c8e
cvttss2si eax, dword [ecx + 0x81c]
mov dword [ebp - 0x14], eax
cvttss2si eax, dword [ecx + 0x820]
mov dword [ebp - 0x10], eax
mov eax, dword [0xa6b680]
mov dword [ebp - 8], eax
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x575d13
mov ecx, dword [0xa585e8]
lea eax, [ebp - 0xe8]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push eax
push 4
lea eax, [ebp - 0xec]
mov dword [ebp - 0xec], 0x6111101
push eax
push edi
mov dword [ebp - 0xf0], ecx
call esi
push 0
lea eax, [ebp - 0xe8]
push eax
push 4
lea eax, [ebp - 0xf0]
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.0057b964
mov esp, ebp
pop ebp
ret 4