Function at 0x58f1e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf4
mov eax, dword [0x6ac30c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0xdc
mov edi, ecx
lea ecx, [ebp - 0xe0]
push 0
push ecx
mov dword [ebp - 0xf4], eax
mov dword [ebp - 0xe4], 0
call fcn.00599ee0
add esp, 0xc
push 0x1f2
mov ecx, 0x604150
call fcn.004c56f0
mov esi, eax
test esi, esi
je 0x58f265
fld dword [esi + 0x1e4]
call fcn.0059a110
mov dword [ebp - 0xe4], eax
fld dword [esi + 0x1e8]
call fcn.0059a110
xor edx, edx
mov dword [ebp - 0xe0], eax
cmp dword [esi + 0x10], edx
setne dl
mov dword [ebp - 0xdc], edx
push 0x6d4
mov ecx, 0x604150
call fcn.004c56f0
mov esi, eax
test esi, esi
je 0x58f2aa
fld dword [esi + 0x1e4]
call fcn.0059a110
mov dword [ebp - 0xd4], eax
fld dword [esi + 0x1e8]
call fcn.0059a110
mov dword [ebp - 0xd0], eax
xor eax, eax
cmp dword [esi + 0x10], eax
setne al
mov dword [ebp - 0xcc], eax
push 0x6ca
mov ecx, 0x604150
call fcn.004c56f0
mov esi, eax
test esi, esi
je 0x58f305
fld dword [esi + 0x1e4]
call fcn.0059a110
mov dword [ebp - 0xc4], eax
fld dword [esi + 0x1e8]
call fcn.0059a110
mov ecx, esi
mov dword [ebp - 0xc0], eax
call fcn.0050fb90
test eax, eax
je 0x58f2fc
xor ecx, ecx
cmp dword [esi + 0x10], ecx
setne cl
mov dword [ebp - 0xbc], ecx
jmp 0x58f305
mov edx, dword [edi + 0x20]
mov dword [ebp - 0xbc], edx
push 0x1ea
mov ecx, 0x604150
call fcn.004c56f0
mov esi, eax
mov edi, 8
test esi, esi
je 0x58f37d
fld dword [esi + 0x1e4]
call fcn.0059a110
mov dword [ebp - 0xb4], eax
fld dword [esi + 0x1e8]
call fcn.0059a110
mov dword [ebp - 0xb0], eax
xor eax, eax
cmp dword [esi + 0x10], eax
setne al
mov dword [ebp - 0xac], eax
movzx eax, word [esi + 0x260]
cmp eax, 1
jne 0x58f364
or dword [ebp - 0xac], 4
jmp 0x58f37d
cmp eax, 2
jne 0x58f371
or dword [ebp - 0xac], edi
jmp 0x58f37d
cmp eax, 3
jne 0x58f37d
or dword [ebp - 0xac], 0x10
push 0x110
mov ecx, 0x604150
call fcn.004c56f0
mov esi, eax
test esi, esi
je 0x58f3d2
fld dword [esi + 0x1e4]
call fcn.0059a110
mov dword [ebp - 0xa4], eax
fld dword [esi + 0x1e8]
call fcn.0059a110
xor ecx, ecx
mov dword [ebp - 0xa0], eax
cmp dword [esi + 0x10], ecx
setne cl
mov dword [ebp - 0x9c], ecx
cmp dword [esi + 0x2f8], 0
je 0x58f3d2
or dword [ebp - 0x9c], 2
push 0x15c
mov ecx, 0x604150
call fcn.004c56f0
mov esi, eax
test esi, esi
je 0x58f454
fld dword [esi + 0x1e4]
call fcn.0059a110
mov dword [ebp - 0x94], eax
fld dword [esi + 0x1e8]
call fcn.0059a110
xor edx, edx
mov dword [ebp - 0x90], eax
cmp dword [esi + 0x10], edx
setne dl
mov dword [ebp - 0x8c], edx
mov eax, dword [esi + 0xa38c]
cmp eax, 1
jne 0x58f42b
or dword [ebp - 0x8c], 4
jmp 0x58f444
cmp eax, 2
jne 0x58f438
or dword [ebp - 0x8c], edi
jmp 0x58f444
cmp eax, 4
jne 0x58f444
or dword [ebp - 0x8c], 0x10
mov ecx, esi
call fcn.00447850
movzx eax, al
mov dword [ebp - 0x88], eax
push 0x82f
mov ecx, 0x604150
call fcn.004c56f0
test eax, eax
je 0x58f48c
cmp dword [eax + 0x10], 0
je 0x58f479
or dword [ebp - 0x8c], 0x100
jmp 0x58f48c
mov eax, 0x100
test dword [ebp - 0x8c], eax
je 0x58f48c
xor dword [ebp - 0x8c], eax
push 0x11a
mov ecx, 0x604150
call fcn.004c56f0
mov esi, eax
test esi, esi
je 0x58f4ec
fld dword [esi + 0x1e4]
call fcn.0059a110
mov dword [ebp - 0x84], eax
fld dword [esi + 0x1e8]
call fcn.0059a110
xor ecx, ecx
mov dword [ebp - 0x80], eax
cmp dword [esi + 0x10], ecx
setne cl
mov dword [ebp - 0x7c], ecx
mov al, byte [esi + 0x253]
cmp al, 1
jne 0x58f4db
or dword [ebp - 0x7c], 4
jmp 0x58f4ec
cmp al, 2
jne 0x58f4e4
or dword [ebp - 0x7c], edi
jmp 0x58f4ec
cmp al, 3
jne 0x58f4ec
or dword [ebp - 0x7c], 0x10
push 0x61
mov ecx, 0x604150
call fcn.004c56f0
mov esi, eax
test esi, esi
je 0x58f525
fld dword [esi + 0x1e4]
call fcn.0059a110
mov dword [ebp - 0x74], eax
fld dword [esi + 0x1e8]
call fcn.0059a110
xor edx, edx
mov dword [ebp - 0x70], eax
cmp dword [esi + 0x10], edx
setne dl
mov dword [ebp - 0x6c], edx
push 0xea
mov ecx, 0x604150
call fcn.004c56f0
mov esi, eax
test esi, esi
je 0x58f5a8
fld dword [esi + 0x1e4]
call fcn.0059a110
mov dword [ebp - 0x64], eax
fld dword [esi + 0x1e8]
call fcn.0059a110
mov dword [ebp - 0x60], eax
xor eax, eax
cmp dword [esi + 0x10], eax
setne al
mov dword [ebp - 0x5c], eax
cmp byte [esi + 0x253], 1
jne 0x58f599
or dword [ebp - 0x5c], 4
mov ecx, dword [0x6d41d4]
mov al, byte [ecx + 0x253]
cmp al, 1
jne 0x58f584
or dword [ebp - 0x5c], 0x20
jmp 0x58f599
cmp al, 2
jne 0x58f58e
or dword [ebp - 0x5c], 0x40
jmp 0x58f599
cmp al, 3
jne 0x58f599
or dword [ebp - 0x5c], 0x80
mov edx, dword [esi + 0x25c]
mov eax, dword [edx + 0x2e0]
mov dword [ebp - 0x58], eax
push 0x767
mov ecx, 0x604150
call fcn.004c56f0
mov esi, eax
test esi, esi
je 0x58f5e4
fld dword [esi + 0x1e4]
call fcn.0059a110
mov dword [ebp - 0x44], eax
fld dword [esi + 0x1e8]
call fcn.0059a110
xor ecx, ecx
mov dword [ebp - 0x40], eax
cmp dword [esi + 0x10], ecx
setne cl
mov dword [ebp - 0x3c], ecx
push 0x700
mov ecx, 0x604150
call fcn.004c56f0
mov esi, eax
test esi, esi
je 0x58f631
fld dword [esi + 0x1e4]
call fcn.0059a110
mov dword [ebp - 0x34], eax
fld dword [esi + 0x1e8]
call fcn.0059a110
mov dword [ebp - 0x30], eax
cmp dword [esi + 0x10], 0
je 0x58f62a
mov eax, 1
mov dword [ebp - 0x2c], eax
mov dword [0x6d5648], eax
jmp 0x58f631
mov dword [ebp - 0x2c], 0
push 0x233
mov ecx, 0x604150
call fcn.004c56f0
mov esi, eax
test esi, esi
je 0x58f67e
fld dword [esi + 0x1e4]
call fcn.0059a110
mov dword [ebp - 0x24], eax
fld dword [esi + 0x1e8]
call fcn.0059a110
xor edx, edx
cmp dword [0x6d42a0], edx
mov dword [ebp - 0x20], eax
setne dl
xor eax, eax
cmp dword [0x6d429c], eax
setne al
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], eax
mov esi, dword [0x6d9fa4]
test esi, esi
je 0x58f6ad
fld dword [esi + 0x1e4]
call fcn.0059a110
mov dword [ebp - 0x14], eax
fld dword [esi + 0x1e8]
call fcn.0059a110
mov ecx, dword [0x6d9fa0]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xf4]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x58f737
mov eax, dword [0x6c5c20]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [ebp - 0xe8]
push ecx
push 4
lea edx, [ebp - 0xec]
push edx
push esi
mov dword [ebp - 0xec], 0x6111101
mov dword [ebp - 0xf0], eax
call edi
push 0
lea eax, [ebp - 0xe8]
push eax
push 4
lea ecx, [ebp - 0xf0]
push ecx
push esi
call edi
push 0
lea edx, [ebp - 0xe8]
push edx
push 0xe0
lea eax, [ebp - 0xe4]
push eax
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00599821
mov esp, ebp
pop ebp
ret 4