Function at 0x5a38e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x398
mov eax, dword [0x607ba4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x354], ecx
cmp dword [ebp + 0x14], 3
je 0x5a3915
cmp dword [ebp + 0x14], 2
je 0x5a3915
cmp dword [ebp + 0x14], 1
je 0x5a3915
mov eax, 0x10000
jmp 0x5a40b6
cmp dword [ebp + 0x14], 3
jne 0x5a3a72
mov eax, dword [ebp - 0x354]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 4]
je 0x5a39e3
mov edx, dword [ebp - 0x354]
cmp dword [edx + 4], 0xffffffff
je 0x5a394e
mov eax, dword [ebp - 0x354]
mov ecx, dword [eax]
push ecx
call fcn.00587150
add esp, 4
mov edx, dword [ebp - 0x354]
mov dword [edx + 4], 0xffffffff
mov eax, dword [ebp - 0x354]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 4]
jl 0x5a3975
mov eax, 0x10000
jmp 0x5a40b6
mov eax, dword [ebp - 0x354]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 0x10]
jge 0x5a3996
mov eax, dword [ebp - 0x354]
mov ecx, dword [eax]
push ecx
call fcn.00581b20
add esp, 4
mov edx, dword [ebp - 0x354]
mov eax, dword [edx]
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp + 8]
jge 0x5a39b9
mov edx, dword [ebp - 0x354]
mov eax, dword [edx]
push eax
call fcn.0040f740
add esp, 4
jmp 0x5a3996
mov ecx, dword [ebp - 0x354]
mov edx, dword [ecx + 0x138]
push edx
mov eax, dword [ebp - 0x354]
mov ecx, dword [eax]
push ecx
call fcn.00588090
add esp, 8
mov edx, dword [ebp - 0x354]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
lea ecx, [ebp - 0x21d]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x354]
mov edx, dword [ecx]
push edx
call fcn.005a5950
add esp, 0x10
mov dword [ebp - 0x378], eax
cmp dword [ebp - 0x378], 0
jg 0x5a3a30
mov eax, dword [ebp - 0x354]
mov ecx, dword [eax]
push ecx
call fcn.00587150
add esp, 4
mov edx, dword [ebp - 0x354]
mov dword [edx + 4], 0xffffffff
movzx eax, byte [ebp - 0x21d]
test eax, eax
je 0x5a3a42
xor eax, eax
jmp 0x5a40b6
cmp dword [ebp - 0x378], 0
jle 0x5a3a55
mov eax, 0x600
jmp 0x5a40b6
cmp dword [ebp - 0x378], 0xffffff96
jne 0x5a3a68
mov eax, 0x1000
jmp 0x5a40b6
mov eax, 0x5000000
jmp 0x5a40b6
mov ecx, dword [ebp - 0x354]
cmp dword [ecx + 4], 0xffffffff
je 0x5a3a8f
mov edx, dword [ebp - 0x354]
mov eax, dword [edx]
push eax
call fcn.00587150
add esp, 4
mov ecx, dword [ebp - 0x354]
mov dword [ecx + 4], 0xffffffff
mov edx, dword [ebp - 0x354]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 4]
jl 0x5a3ab6
mov eax, 0x10000
jmp 0x5a40b6
mov edx, dword [ebp - 0x354]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0x10]
jge 0x5a3ad7
mov edx, dword [ebp - 0x354]
mov eax, dword [edx]
push eax
call fcn.00581b20
add esp, 4
mov ecx, dword [ebp - 0x354]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
cmp eax, dword [ebp + 8]
jge 0x5a3afa
mov ecx, dword [ebp - 0x354]
mov edx, dword [ecx]
push edx
call fcn.0040f740
add esp, 4
jmp 0x5a3ad7
lea eax, [ebp - 0x350]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x354]
call fcn.0058f420
mov edx, dword [ebp - 0x248]
and edx, 0x10
je 0x5a3bf3
cmp dword [ebp + 0x14], 1
jne 0x5a3b2c
xor eax, eax
jmp 0x5a40b6
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x360], eax
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 0x360]
movsx ecx, byte [eax + edx]
cmp ecx, 0x2f
je 0x5a3b9c
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp - 0x360]
movsx edx, byte [ecx + eax]
cmp edx, 0x5c
je 0x5a3b9c
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp - 0x360]
movsx eax, byte [edx + ecx]
test eax, eax
je 0x5a3b90
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp - 0x360]
movsx eax, byte [edx + ecx]
cmp eax, 0x3a
je 0x5a3b9c
mov dword [ebp - 0x37c], 0
jmp 0x5a3ba6
mov dword [ebp - 0x37c], 1
mov cl, byte [ebp - 0x37c]
mov byte [ebp - 0x359], cl
movzx edx, byte [ebp - 0x359]
test edx, edx
je 0x5a3bd0
mov eax, dword [ebp - 0x360]
push eax
push 0
call fcn.00405d20
add esp, 8
jmp 0x5a3bec
mov ecx, dword [ebp - 0x360]
push ecx
mov edx, dword [ebp - 0x354]
add edx, 0x140
push edx
call fcn.00405d20
add esp, 8
xor eax, eax
jmp 0x5a40b6
cmp dword [ebp + 0x14], 1
jne 0x5a3c07
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x370], eax
jmp 0x5a3f04
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x374], ecx
mov edx, dword [ebp - 0x374]
mov dword [ebp - 0x368], edx
mov eax, dword [ebp - 0x368]
mov dword [ebp - 0x364], eax
mov ecx, dword [ebp - 0x364]
movsx edx, byte [ecx]
test edx, edx
je 0x5a3c71
mov eax, dword [ebp - 0x364]
movsx ecx, byte [eax]
cmp ecx, 0x2f
je 0x5a3c51
mov edx, dword [ebp - 0x364]
movsx eax, byte [edx]
cmp eax, 0x5c
jne 0x5a3c60
mov ecx, dword [ebp - 0x364]
add ecx, 1
mov dword [ebp - 0x368], ecx
mov edx, dword [ebp - 0x364]
add edx, 1
mov dword [ebp - 0x364], edx
jmp 0x5a3c28
push 0xffffffffffffffff
mov eax, dword [ebp - 0x374]
push eax
push 0x104
lea ecx, [ebp - 0x118]
push ecx
call fcn.00421cd0
add esp, 0x10
mov edx, dword [ebp - 0x368]
cmp edx, dword [ebp - 0x374]
jne 0x5a3ccd
mov eax, 1
imul ecx, eax, 0
mov dword [ebp - 0x380], ecx
cmp dword [ebp - 0x380], 0x104
jae 0x5a3cb8
jmp 0x5a3cbd
call fcn.0055fd97
mov edx, dword [ebp - 0x380]
mov byte [ebp + edx - 0x118], 0
jmp 0x5a3d00
mov eax, dword [ebp - 0x368]
sub eax, dword [ebp - 0x374]
mov dword [ebp - 0x384], eax
cmp dword [ebp - 0x384], 0x104
jae 0x5a3ced
jmp 0x5a3cf2
call fcn.0055fd97
mov ecx, dword [ebp - 0x384]
mov byte [ebp + ecx - 0x118], 0
mov edx, 1
imul eax, edx, 0
movsx ecx, byte [ebp + eax - 0x118]
cmp ecx, 0x2f
je 0x5a3d5f
mov edx, 1
imul eax, edx, 0
movsx ecx, byte [ebp + eax - 0x118]
cmp ecx, 0x5c
je 0x5a3d5f
mov edx, 1
imul eax, edx, 0
movsx ecx, byte [ebp + eax - 0x118]
test ecx, ecx
je 0x5a3d53
mov edx, 1
shl edx, 0
movsx eax, byte [ebp + edx - 0x118]
cmp eax, 0x3a
je 0x5a3d5f
mov dword [ebp - 0x388], 0
jmp 0x5a3d69
mov dword [ebp - 0x388], 1
mov cl, byte [ebp - 0x388]
mov byte [ebp - 0x35a], cl
mov edx, 1
shl edx, 1
mov byte [ebp + edx - 0xc], 0x25
mov eax, 1
imul ecx, eax, 3
mov byte [ebp + ecx - 0xc], 0x73
mov edx, 1
shl edx, 0
mov byte [ebp + edx - 0xc], 0x73
mov eax, 1
shl eax, 2
mov dword [ebp - 0x38c], eax
cmp dword [ebp - 0x38c], 5
jae 0x5a3db4
jmp 0x5a3db9
call fcn.0055fd97
mov ecx, dword [ebp - 0x38c]
mov byte [ebp + ecx - 0xc], 0
mov edx, 1
imul eax, edx, 0
mov byte [ebp + eax - 0xc], 0x25
mov ecx, 1
imul edx, ecx, 3
mov byte [ebp + edx - 0x14], 0x73
mov eax, 1
shl eax, 0
mov byte [ebp + eax - 0x14], 0x73
mov ecx, 1
imul edx, ecx, 5
mov byte [ebp + edx - 0x14], 0x73
mov eax, 1
imul ecx, eax, 6
mov dword [ebp - 0x390], ecx
cmp dword [ebp - 0x390], 7
jae 0x5a3e11
jmp 0x5a3e16
call fcn.0055fd97
mov edx, dword [ebp - 0x390]
mov byte [ebp + edx - 0x14], 0
mov eax, 1
imul ecx, eax, 0
mov byte [ebp + ecx - 0x14], 0x25
mov edx, 1
shl edx, 2
mov byte [ebp + edx - 0x14], 0x25
mov eax, 1
shl eax, 1
mov byte [ebp + eax - 0x14], 0x25
movzx ecx, byte [ebp - 0x35a]
test ecx, ecx
je 0x5a3e8d
mov edx, dword [ebp - 0x368]
push edx
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0xffffffffffffffff
push 0x104
lea edx, [ebp - 0x21c]
push edx
call fcn.004191e0
add esp, 0x18
lea eax, [ebp - 0x118]
push eax
push 0
call fcn.00405d20
add esp, 8
jmp 0x5a3edd
mov ecx, dword [ebp - 0x368]
push ecx
lea edx, [ebp - 0x118]
push edx
mov eax, dword [ebp - 0x354]
add eax, 0x140
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0xffffffffffffffff
push 0x104
lea edx, [ebp - 0x21c]
push edx
call fcn.004191e0
add esp, 0x1c
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [ebp - 0x354]
add ecx, 0x140
push ecx
call fcn.00405d20
add esp, 8
push 0
mov edx, dword [ebp - 0x248]
push edx
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x370], eax
cmp dword [ebp - 0x370], 0xffffffff
jne 0x5a3f17
mov eax, 0x200
jmp 0x5a40b6
mov ecx, dword [ebp - 0x354]
mov edx, dword [ecx + 0x138]
push edx
mov eax, dword [ebp - 0x354]
mov ecx, dword [eax]
push ecx
call fcn.00588090
add esp, 8
mov edx, dword [ebp - 0x354]
cmp dword [edx + 0x13c], 0
jne 0x5a3f69
push 0x4000
call fcn.0042a90b
add esp, 4
mov dword [ebp - 0x394], eax
mov eax, dword [ebp - 0x354]
mov ecx, dword [ebp - 0x394]
mov dword [eax + 0x13c], ecx
mov dword [ebp - 0x358], 0
cmp dword [ebp - 0x358], 0
jne 0x5a4052
lea edx, [ebp - 0x21e]
push edx
push 0x4000
mov eax, dword [ebp - 0x354]
mov ecx, dword [eax + 0x13c]
push ecx
mov edx, dword [ebp - 0x354]
mov eax, dword [edx]
push eax
call fcn.005a5950
add esp, 0x10
mov dword [ebp - 0x36c], eax
cmp dword [ebp - 0x36c], 0xffffff96
jne 0x5a3fc8
mov dword [ebp - 0x358], 0x1000
jmp 0x5a4052
cmp dword [ebp - 0x36c], 0
jge 0x5a3fdd
mov dword [ebp - 0x358], 0x5000000
jmp 0x5a4052
cmp dword [ebp - 0x36c], 0
jle 0x5a402b
push 0
lea ecx, [ebp - 0x224]
push ecx
mov edx, dword [ebp - 0x36c]
push edx
mov eax, dword [ebp - 0x354]
mov ecx, dword [eax + 0x13c]
push ecx
mov edx, dword [ebp - 0x370]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x398], eax
cmp dword [ebp - 0x398], 0
jne 0x5a402b
mov dword [ebp - 0x358], 0x400
jmp 0x5a4052
movzx eax, byte [ebp - 0x21e]
test eax, eax
je 0x5a4038
jmp 0x5a4052
cmp dword [ebp - 0x36c], 0
jne 0x5a404d
mov dword [ebp - 0x358], 0x5000000
jmp 0x5a4052
jmp 0x5a3f73
cmp dword [ebp - 0x358], 0
jne 0x5a407d
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp - 0x244]
push edx
lea eax, [ebp - 0x23c]
push eax
mov ecx, dword [ebp - 0x370]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [ebp + 0x14], 1
je 0x5a4092
mov edx, dword [ebp - 0x370]
push edx
call fcn.00412f70
add esp, 4
mov eax, dword [ebp - 0x354]
mov ecx, dword [eax]
push ecx
call fcn.00587150
add esp, 4
cmp dword [ebp - 0x358], 0
je 0x5a40b4
mov eax, dword [ebp - 0x358]
jmp 0x5a40b6
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055fe73
mov esp, ebp
pop ebp
ret 0x10