Function at 0x4107c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3ac
mov eax, dword [0x76c500]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x398], 0
mov dword [ebp - 0x39c], 0
mov dword [ebp - 0x17c], 0
push 0
push 0
push 0
push 0
push 0x100
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x178]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.004c7540
add esp, 0x20
mov dword [ebp - 0x398], eax
cmp dword [ebp - 0x398], 0
je 0x410832
mov eax, dword [ebp - 0x398]
jmp 0x410e33
mov dword [ebp - 0x14], 0x2000
mov eax, dword [ebp - 0x14]
push eax
call fcn.004cfe98
add esp, 4
mov dword [ebp - 0x394], eax
cmp dword [ebp - 0x394], 0
jne 0x41085e
mov eax, 0xffffff98
jmp 0x410e33
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x190], ecx
mov edx, dword [ebp - 0x190]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
test ecx, ecx
je 0x4108aa
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
cmp eax, 0x2f
je 0x410893
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
cmp edx, 0x5c
jne 0x41089f
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 0x190], eax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x410873
mov edx, dword [ebp - 0x190]
movsx eax, byte [edx]
test eax, eax
jne 0x4108e1
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x3a0], ecx
cmp dword [ebp - 0x3a0], 0
je 0x4108cb
jmp 0x4108cd
jmp 0x4108dc
lea edx, [ebp - 0x120]
push edx
call fcn.00478f50
add esp, 4
jmp 0x410e1e
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x390]
push ecx
call fcn.004cfda0
add esp, 8
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004c8a40
add esp, 8
mov dword [ebp - 0x398], eax
cmp dword [ebp - 0x398], 0
je 0x410932
mov ecx, dword [ebp - 0x394]
push ecx
call fcn.004cfd5f
add esp, 4
or eax, 0xffffffff
jmp 0x410e33
mov edx, dword [ebp + 8]
mov dword [ebp - 0x3a4], edx
cmp dword [ebp - 0x3a4], 0
je 0x410949
jmp 0x410a45
push 0x50eb90
lea eax, [ebp - 0x390]
push eax
call fcn.0040cab0
add esp, 8
mov dword [ebp - 0x17c], eax
mov dword [ebp - 8], 0
cmp dword [ebp - 0x17c], 0
jne 0x410a1e
mov dword [ebp - 0x18], 1
jmp 0x410989
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
lea edx, [ebp - 0x390]
push edx
call fcn.004cff30
add esp, 4
cmp dword [ebp - 0x18], eax
jge 0x4109ee
mov eax, dword [ebp - 0x18]
movsx ecx, byte [ebp + eax - 0x390]
cmp ecx, 0x2f
jne 0x4109ec
push 0x100
push 0
lea edx, [ebp - 0x290]
push edx
call fcn.004d0840
add esp, 0xc
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x390]
push ecx
lea edx, [ebp - 0x290]
push edx
call fcn.004d04d0
add esp, 0xc
lea eax, [ebp - 0x290]
push eax
call fcn.00479260
add esp, 4
jmp 0x410980
push 0x50eb94
lea ecx, [ebp - 0x390]
push ecx
call fcn.0040cab0
add esp, 8
mov dword [ebp - 0x17c], eax
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0x64
jle 0x410a19
jmp 0x410a1e
jmp 0x41096a
cmp dword [ebp - 0x17c], 0
jne 0x410a40
mov eax, dword [ebp - 0x394]
push eax
call fcn.004cfd5f
add esp, 4
mov eax, 0xffffff9b
jmp 0x410e33
jmp 0x410b3c
push 0x50eb98
lea ecx, [ebp - 0x390]
push ecx
call fcn.004d0f8b
add esp, 8
mov dword [ebp - 0x39c], eax
mov dword [ebp - 8], 0
cmp dword [ebp - 0x39c], 0
jne 0x410b1a
mov dword [ebp - 0x18], 1
jmp 0x410a85
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
lea eax, [ebp - 0x390]
push eax
call fcn.004cff30
add esp, 4
cmp dword [ebp - 0x18], eax
jge 0x410aea
mov ecx, dword [ebp - 0x18]
movsx edx, byte [ebp + ecx - 0x390]
cmp edx, 0x2f
jne 0x410ae8
push 0x100
push 0
lea eax, [ebp - 0x290]
push eax
call fcn.004d0840
add esp, 0xc
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp - 0x390]
push edx
lea eax, [ebp - 0x290]
push eax
call fcn.004d04d0
add esp, 0xc
lea ecx, [ebp - 0x290]
push ecx
call fcn.00479260
add esp, 4
jmp 0x410a7c
push 0x50eb9c
lea edx, [ebp - 0x390]
push edx
call fcn.004d0f8b
add esp, 8
mov dword [ebp - 0x39c], eax
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x64
jle 0x410b15
jmp 0x410b1a
jmp 0x410a66
cmp dword [ebp - 0x39c], 0
jne 0x410b3c
mov ecx, dword [ebp - 0x394]
push ecx
call fcn.004cfd5f
add esp, 4
mov eax, 0xffffff9b
jmp 0x410e33
cmp dword [ebp + 8], 0
jne 0x410b4b
cmp dword [ebp - 0x17c], 0
jne 0x410b62
cmp dword [ebp + 8], 0
je 0x410df5
cmp dword [ebp - 0x39c], 0
je 0x410df5
cmp dword [ebp + 0x10], 0
jle 0x410bd8
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
cmp eax, dword [ebp + 0x10]
jge 0x410b88
lea ecx, [ebp - 0x390]
push ecx
call fcn.004cff30
add esp, 4
cmp eax, 0x100
jbe 0x410bb0
mov edx, dword [ebp - 0x394]
push edx
call fcn.004cfd5f
add esp, 4
mov eax, dword [ebp - 0x39c]
push eax
call fcn.004d0e5b
add esp, 4
mov eax, 0xfffffff7
jmp 0x410e33
lea ecx, [ebp - 0x390]
push ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx + eax*4]
push edx
call fcn.004cfda0
add esp, 8
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp + 0x14]
mov dword [edx], ecx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x394]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.004c8ae0
add esp, 0xc
mov dword [ebp - 0x398], eax
cmp dword [ebp - 0x398], 0
jge 0x410c03
jmp 0x410cad
cmp dword [ebp - 0x398], 0
jle 0x410ca0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3a8], eax
cmp dword [ebp - 0x3a8], 0
je 0x410c24
jmp 0x410c63
mov ecx, dword [ebp - 0x17c]
push ecx
push 1
mov edx, dword [ebp - 0x398]
push edx
mov eax, dword [ebp - 0x394]
push eax
call fcn.0040d4f0
add esp, 0x10
cmp eax, 1
je 0x410c61
mov ecx, dword [ebp - 0x394]
push ecx
call fcn.004cfd5f
add esp, 4
mov eax, 0xfffffffe
jmp 0x410e33
jmp 0x410ca0
mov edx, dword [ebp - 0x39c]
push edx
push 1
mov eax, dword [ebp - 0x398]
push eax
mov ecx, dword [ebp - 0x394]
push ecx
call fcn.004d3336
add esp, 0x10
cmp eax, 1
je 0x410ca0
mov edx, dword [ebp - 0x394]
push edx
call fcn.004cfd5f
add esp, 4
mov dword [ebp - 0x398], 0xffffffff
cmp dword [ebp - 0x398], 0
jg 0x410bd8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3ac], eax
cmp dword [ebp - 0x3ac], 0
je 0x410cc4
jmp 0x410d84
cmp dword [ebp - 0x17c], 0
je 0x410d82
lea ecx, [ebp - 0x10]
push ecx
movzx edx, word [ebp - 0x168]
push edx
mov eax, dword [ebp - 0x168]
shr eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
lea ecx, [ebp - 0x18c]
push ecx
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx eax, word [ebp - 0x180]
mov ecx, dword [ebp - 0x17c]
mov dword [ecx + 0x128], eax
movzx edx, word [ebp - 0x182]
mov eax, dword [ebp - 0x17c]
mov dword [eax + 0x12c], edx
movzx ecx, word [ebp - 0x184]
mov edx, dword [ebp - 0x17c]
mov dword [edx + 0x130], ecx
movzx eax, word [ebp - 0x186]
mov ecx, dword [ebp - 0x17c]
mov dword [ecx + 0x134], eax
movzx edx, word [ebp - 0x18a]
sub edx, 1
mov eax, dword [ebp - 0x17c]
mov dword [eax + 0x138], edx
movzx ecx, word [ebp - 0x18c]
mov edx, dword [ebp - 0x17c]
mov dword [edx + 0x13c], ecx
mov eax, dword [ebp - 0x17c]
push eax
call fcn.0040d790
add esp, 4
jmp 0x410df5
cmp dword [ebp - 0x39c], 0
je 0x410d9c
mov ecx, dword [ebp - 0x39c]
push ecx
call fcn.004d0e5b
add esp, 4
cmp dword [ebp - 0x398], 0
jne 0x410df5
sub esp, 0x18
mov edx, esp
mov eax, dword [ebp - 0x138]
mov dword [edx], eax
mov ecx, dword [ebp - 0x134]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x130]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x12c]
mov dword [edx + 0xc], ecx
mov eax, dword [ebp - 0x128]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 0x124]
mov dword [edx + 0x14], ecx
mov edx, dword [ebp - 0x168]
push edx
lea eax, [ebp - 0x390]
push eax
call fcn.00478e40
add esp, 0x20
cmp dword [ebp - 0x398], 0
jne 0x410e12
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004c91b0
add esp, 4
mov dword [ebp - 0x398], eax
jmp 0x410e1e
mov edx, dword [ebp + 0xc]
push edx
call fcn.004c91b0
add esp, 4
mov eax, dword [ebp - 0x394]
push eax
call fcn.004cfd5f
add esp, 4
mov eax, dword [ebp - 0x398]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004d0170
mov esp, ebp
pop ebp
ret