Function at 0x1003d5c0
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x614]
sub esp, 0x688
mov eax, dword [0x10080248]
xor eax, ebp
mov dword [ebp + 0x610], eax
mov dword [ebp - 0x34], ecx
cmp dword [ebp + 0x628], 3
je 0x1003d603
cmp dword [ebp + 0x628], 2
je 0x1003d603
cmp dword [ebp + 0x628], 1
je 0x1003d603
mov eax, 0x10000
jmp 0x1003dbab
cmp dword [ebp + 0x628], 3
jne 0x1003d739
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp + 0x61c]
cmp ecx, dword [eax + 4]
je 0x1003d6bf
mov edx, dword [ebp - 0x34]
cmp dword [edx + 4], 0xffffffff
je 0x1003d639
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
push ecx
call fcn.10042830
add esp, 4
mov edx, dword [ebp - 0x34]
mov dword [edx + 4], 0xffffffff
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
mov edx, dword [ebp + 0x61c]
cmp edx, dword [ecx + 4]
jl 0x1003d65d
mov eax, 0x10000
jmp 0x1003dbab
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
mov edx, dword [ebp + 0x61c]
cmp edx, dword [ecx + 0x10]
jge 0x1003d67b
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
push ecx
call fcn.10042930
add esp, 4
mov edx, dword [ebp - 0x34]
mov eax, dword [edx]
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp + 0x61c]
jge 0x1003d69b
mov edx, dword [ebp - 0x34]
mov eax, dword [edx]
push eax
call fcn.100429b0
add esp, 4
jmp 0x1003d67b
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0x23c]
push edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
push ecx
call fcn.10042ba0
add esp, 8
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp + 0x61c]
mov dword [edx + 4], eax
lea ecx, [ebp - 0x3a]
push ecx
mov edx, dword [ebp + 0x624]
push edx
mov eax, dword [ebp + 0x620]
push eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx]
push edx
call fcn.100430b0
add esp, 0x10
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jg 0x1003d700
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
push ecx
call fcn.10042830
add esp, 4
mov edx, dword [ebp - 0x34]
mov dword [edx + 4], 0xffffffff
movzx eax, byte [ebp - 0x3a]
test eax, eax
je 0x1003d70f
xor eax, eax
jmp 0x1003dbab
cmp dword [ebp - 0x58], 0
jle 0x1003d71f
mov eax, 0x600
jmp 0x1003dbab
cmp dword [ebp - 0x58], 0xffffff96
jne 0x1003d72f
mov eax, 0x1000
jmp 0x1003dbab
mov eax, 0x5000000
jmp 0x1003dbab
mov ecx, dword [ebp - 0x34]
cmp dword [ecx + 4], 0xffffffff
je 0x1003d750
mov edx, dword [ebp - 0x34]
mov eax, dword [edx]
push eax
call fcn.10042830
add esp, 4
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 4], 0xffffffff
mov edx, dword [ebp - 0x34]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x61c]
cmp ecx, dword [eax + 4]
jl 0x1003d774
mov eax, 0x10000
jmp 0x1003dbab
mov edx, dword [ebp - 0x34]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x61c]
cmp ecx, dword [eax + 0x10]
jge 0x1003d792
mov edx, dword [ebp - 0x34]
mov eax, dword [edx]
push eax
call fcn.10042930
add esp, 4
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
cmp eax, dword [ebp + 0x61c]
jge 0x1003d7b2
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx]
push edx
call fcn.100429b0
add esp, 4
jmp 0x1003d792
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp + 0x61c]
push ecx
mov ecx, dword [ebp - 0x34]
call fcn.1003c9e0
mov edx, dword [ebp + 0x1dc]
and edx, 0x10
je 0x1003d887
cmp dword [ebp + 0x628], 1
jne 0x1003d7e4
xor eax, eax
jmp 0x1003dbab
mov eax, dword [ebp + 0x620]
mov dword [ebp - 0x40], eax
mov ecx, 2
imul edx, ecx, 0
mov eax, dword [ebp - 0x40]
movzx ecx, word [eax + edx]
cmp ecx, 0x2f
je 0x1003d845
mov edx, 2
imul eax, edx, 0
mov ecx, dword [ebp - 0x40]
movzx edx, word [ecx + eax]
cmp edx, 0x5c
je 0x1003d845
mov eax, 2
imul ecx, eax, 0
mov edx, dword [ebp - 0x40]
movzx eax, word [edx + ecx]
test eax, eax
je 0x1003d83c
mov ecx, 2
shl ecx, 0
mov edx, dword [ebp - 0x40]
movzx eax, word [edx + ecx]
cmp eax, 0x3a
je 0x1003d845
mov dword [ebp - 0x68], 0
jmp 0x1003d84c
mov dword [ebp - 0x68], 1
mov cl, byte [ebp - 0x68]
mov byte [ebp - 0x3b], cl
movzx edx, byte [ebp - 0x3b]
test edx, edx
je 0x1003d86a
mov eax, dword [ebp - 0x40]
push eax
push 0
call fcn.1003c670
add esp, 8
jmp 0x1003d880
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x34]
add edx, 0x244
push edx
call fcn.1003c670
add esp, 8
xor eax, eax
jmp 0x1003dbab
cmp dword [ebp + 0x628], 1
jne 0x1003d89e
mov eax, dword [ebp + 0x620]
mov dword [ebp - 0x4c], eax
jmp 0x1003da61
mov ecx, dword [ebp + 0x620]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
movzx edx, word [ecx]
test edx, edx
je 0x1003d8e7
mov eax, dword [ebp - 0x44]
movzx ecx, word [eax]
cmp ecx, 0x2f
je 0x1003d8d3
mov edx, dword [ebp - 0x44]
movzx eax, word [edx]
cmp eax, 0x5c
jne 0x1003d8dc
mov ecx, dword [ebp - 0x44]
add ecx, 2
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x44]
add edx, 2
mov dword [ebp - 0x44], edx
jmp 0x1003d8b3
mov eax, dword [ebp - 0x54]
push eax
lea ecx, [ebp + 0x408]
push ecx
call fcn.10053877
add esp, 8
mov edx, dword [ebp - 0x48]
cmp edx, dword [ebp - 0x54]
jne 0x1003d92c
mov eax, 2
imul ecx, eax, 0
mov dword [ebp - 0x64], ecx
cmp dword [ebp - 0x64], 0x208
jae 0x1003d918
jmp 0x1003d91d
call fcn.10053670
xor edx, edx
mov eax, dword [ebp - 0x64]
mov word [ebp + eax + 0x408], dx
jmp 0x1003d956
mov ecx, dword [ebp - 0x48]
sub ecx, dword [ebp - 0x54]
sar ecx, 1
shl ecx, 1
mov dword [ebp - 0x5c], ecx
cmp dword [ebp - 0x5c], 0x208
jae 0x1003d944
jmp 0x1003d949
call fcn.10053670
xor edx, edx
mov eax, dword [ebp - 0x5c]
mov word [ebp + eax + 0x408], dx
mov ecx, 2
imul edx, ecx, 0
movzx eax, word [ebp + edx + 0x408]
cmp eax, 0x2f
je 0x1003d9b2
mov ecx, 2
imul edx, ecx, 0
movzx eax, word [ebp + edx + 0x408]
cmp eax, 0x5c
je 0x1003d9b2
mov ecx, 2
imul edx, ecx, 0
movzx eax, word [ebp + edx + 0x408]
test eax, eax
je 0x1003d9a9
mov ecx, 2
shl ecx, 0
movzx edx, word [ebp + ecx + 0x408]
cmp edx, 0x3a
je 0x1003d9b2
mov dword [ebp - 0x60], 0
jmp 0x1003d9b9
mov dword [ebp - 0x60], 1
mov al, byte [ebp - 0x60]
mov byte [ebp - 0x39], al
movzx ecx, byte [ebp - 0x39]
test ecx, ecx
je 0x1003d9fa
mov edx, dword [ebp - 0x48]
push edx
lea eax, [ebp + 0x408]
push eax
push str._s_s
lea ecx, [ebp + 0x200]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [ebp + 0x408]
push edx
push 0
call fcn.1003c670
add esp, 8
jmp 0x1003da3d
mov eax, dword [ebp - 0x48]
push eax
lea ecx, [ebp + 0x408]
push ecx
mov edx, dword [ebp - 0x34]
add edx, 0x244
push edx
push str._s_s_s
lea eax, [ebp + 0x200]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea ecx, [ebp + 0x408]
push ecx
mov edx, dword [ebp - 0x34]
add edx, 0x244
push edx
call fcn.1003c670
add esp, 8
push 0
mov eax, dword [ebp + 0x1dc]
push eax
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp + 0x200]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0xffffffff
jne 0x1003da71
mov eax, 0x200
jmp 0x1003dbab
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0x23c]
push eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx]
push edx
call fcn.10042ba0
add esp, 8
mov eax, dword [ebp - 0x34]
cmp dword [eax + 0x240], 0
jne 0x1003dab1
push 0x4000
call fcn.1004d889
add esp, 4
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x70]
mov dword [ecx + 0x240], edx
mov dword [ebp - 0x38], 0
cmp dword [ebp - 0x38], 0
jne 0x1003db58
lea eax, [ebp - 0x3c]
push eax
push 0x4000
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0x240]
push edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
push ecx
call fcn.100430b0
add esp, 0x10
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0xffffff96
jne 0x1003daf5
mov dword [ebp - 0x38], 0x1000
jmp 0x1003db58
cmp dword [ebp - 0x50], 0
jge 0x1003db04
mov dword [ebp - 0x38], 0x5000000
jmp 0x1003db58
cmp dword [ebp - 0x50], 0
jle 0x1003db3a
push 0
lea edx, [ebp - 0x74]
push edx
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0x240]
push edx
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
jne 0x1003db3a
mov dword [ebp - 0x38], 0x400
jmp 0x1003db58
movzx ecx, byte [ebp - 0x3c]
test ecx, ecx
je 0x1003db44
jmp 0x1003db58
cmp dword [ebp - 0x50], 0
jne 0x1003db53
mov dword [ebp - 0x38], 0x5000000
jmp 0x1003db58
jmp 0x1003dab8
cmp dword [ebp - 0x38], 0
jne 0x1003db7d
lea edx, [ebp + 0x1f0]
push edx
lea eax, [ebp + 0x1e0]
push eax
lea ecx, [ebp + 0x1e8]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [ebp + 0x628], 1
je 0x1003db90
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx]
push edx
call fcn.10042830
add esp, 4
cmp dword [ebp - 0x38], 0
je 0x1003dba9
mov eax, dword [ebp - 0x38]
jmp 0x1003dbab
xor eax, eax
mov ecx, dword [ebp + 0x610]
xor ecx, ebp
call fcn.1004e80a
add ebp, 0x614
mov esp, ebp
pop ebp
ret 0x10