Function at 0x474360
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x37c
mov eax, dword [0x8a0204]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x33c], ecx
cmp dword [ebp + 0x14], 3
je 0x474395
cmp dword [ebp + 0x14], 2
je 0x474395
cmp dword [ebp + 0x14], 1
je 0x474395
mov eax, 0x10000
jmp 0x474a50
cmp dword [ebp + 0x14], 3
jne 0x4744f2
mov eax, dword [ebp - 0x33c]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 4]
je 0x474463
mov edx, dword [ebp - 0x33c]
cmp dword [edx + 4], 0xffffffff
je 0x4743ce
mov eax, dword [ebp - 0x33c]
mov ecx, dword [eax]
push ecx
call fcn.00479900
add esp, 4
mov edx, dword [ebp - 0x33c]
mov dword [edx + 4], 0xffffffff
mov eax, dword [ebp - 0x33c]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 4]
jl 0x4743f5
mov eax, 0x10000
jmp 0x474a50
mov eax, dword [ebp - 0x33c]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 0x10]
jge 0x474416
mov eax, dword [ebp - 0x33c]
mov ecx, dword [eax]
push ecx
call fcn.00479a00
add esp, 4
mov edx, dword [ebp - 0x33c]
mov eax, dword [edx]
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp + 8]
jge 0x474439
mov edx, dword [ebp - 0x33c]
mov eax, dword [edx]
push eax
call fcn.00479a80
add esp, 4
jmp 0x474416
mov ecx, dword [ebp - 0x33c]
mov edx, dword [ecx + 0x138]
push edx
mov eax, dword [ebp - 0x33c]
mov ecx, dword [eax]
push ecx
call fcn.00479c70
add esp, 8
mov edx, dword [ebp - 0x33c]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
lea ecx, [ebp - 0x341]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x33c]
mov edx, dword [ecx]
push edx
call fcn.0047a1e0
add esp, 0x10
mov dword [ebp - 0x360], eax
cmp dword [ebp - 0x360], 0
jg 0x4744b0
mov eax, dword [ebp - 0x33c]
mov ecx, dword [eax]
push ecx
call fcn.00479900
add esp, 4
mov edx, dword [ebp - 0x33c]
mov dword [edx + 4], 0xffffffff
movzx eax, byte [ebp - 0x341]
test eax, eax
je 0x4744c2
xor eax, eax
jmp 0x474a50
cmp dword [ebp - 0x360], 0
jle 0x4744d5
mov eax, 0x600
jmp 0x474a50
cmp dword [ebp - 0x360], 0xffffff96
jne 0x4744e8
mov eax, 0x1000
jmp 0x474a50
mov eax, 0x5000000
jmp 0x474a50
mov ecx, dword [ebp - 0x33c]
cmp dword [ecx + 4], 0xffffffff
je 0x47450f
mov edx, dword [ebp - 0x33c]
mov eax, dword [edx]
push eax
call fcn.00479900
add esp, 4
mov ecx, dword [ebp - 0x33c]
mov dword [ecx + 4], 0xffffffff
mov edx, dword [ebp - 0x33c]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 4]
jl 0x474536
mov eax, 0x10000
jmp 0x474a50
mov edx, dword [ebp - 0x33c]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0x10]
jge 0x474557
mov edx, dword [ebp - 0x33c]
mov eax, dword [edx]
push eax
call fcn.00479a00
add esp, 4
mov ecx, dword [ebp - 0x33c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
cmp eax, dword [ebp + 8]
jge 0x47457a
mov ecx, dword [ebp - 0x33c]
mov edx, dword [ecx]
push edx
call fcn.00479a80
add esp, 4
jmp 0x474557
lea eax, [ebp - 0x338]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x33c]
call fcn.00473560
mov edx, dword [ebp - 0x230]
and edx, 0x10
je 0x474673
cmp dword [ebp + 0x14], 1
jne 0x4745ac
xor eax, eax
jmp 0x474a50
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x348], eax
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 0x348]
movsx ecx, byte [eax + edx]
cmp ecx, 0x2f
je 0x47461c
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp - 0x348]
movsx edx, byte [ecx + eax]
cmp edx, 0x5c
je 0x47461c
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp - 0x348]
movsx eax, byte [edx + ecx]
test eax, eax
je 0x474610
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp - 0x348]
movsx eax, byte [edx + ecx]
cmp eax, 0x3a
je 0x47461c
mov dword [ebp - 0x364], 0
jmp 0x474626
mov dword [ebp - 0x364], 1
mov cl, byte [ebp - 0x364]
mov byte [ebp - 0x342], cl
movzx edx, byte [ebp - 0x342]
test edx, edx
je 0x474650
mov eax, dword [ebp - 0x348]
push eax
push 0
call fcn.004731f0
add esp, 8
jmp 0x47466c
mov ecx, dword [ebp - 0x348]
push ecx
mov edx, dword [ebp - 0x33c]
add edx, 0x140
push edx
call fcn.004731f0
add esp, 8
xor eax, eax
jmp 0x474a50
cmp dword [ebp + 0x14], 1
jne 0x474687
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x358], eax
jmp 0x4748a0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x35c], ecx
mov edx, dword [ebp - 0x35c]
mov dword [ebp - 0x350], edx
mov eax, dword [ebp - 0x350]
mov dword [ebp - 0x34c], eax
mov ecx, dword [ebp - 0x34c]
movsx edx, byte [ecx]
test edx, edx
je 0x4746f1
mov eax, dword [ebp - 0x34c]
movsx ecx, byte [eax]
cmp ecx, 0x2f
je 0x4746d1
mov edx, dword [ebp - 0x34c]
movsx eax, byte [edx]
cmp eax, 0x5c
jne 0x4746e0
mov ecx, dword [ebp - 0x34c]
add ecx, 1
mov dword [ebp - 0x350], ecx
mov edx, dword [ebp - 0x34c]
add edx, 1
mov dword [ebp - 0x34c], edx
jmp 0x4746a8
mov eax, dword [ebp - 0x35c]
push eax
lea ecx, [ebp - 0x108]
push ecx
call fcn.00786cf0
add esp, 8
mov edx, dword [ebp - 0x350]
cmp edx, dword [ebp - 0x35c]
jne 0x474746
mov eax, 1
imul ecx, eax, 0
mov dword [ebp - 0x368], ecx
cmp dword [ebp - 0x368], 0x104
jae 0x474731
jmp 0x474736
call fcn.0075ca57
mov edx, dword [ebp - 0x368]
mov byte [ebp + edx - 0x108], 0
jmp 0x474779
mov eax, dword [ebp - 0x350]
sub eax, dword [ebp - 0x35c]
mov dword [ebp - 0x36c], eax
cmp dword [ebp - 0x36c], 0x104
jae 0x474766
jmp 0x47476b
call fcn.0075ca57
mov ecx, dword [ebp - 0x36c]
mov byte [ebp + ecx - 0x108], 0
mov edx, 1
imul eax, edx, 0
movsx ecx, byte [ebp + eax - 0x108]
cmp ecx, 0x2f
je 0x4747d8
mov edx, 1
imul eax, edx, 0
movsx ecx, byte [ebp + eax - 0x108]
cmp ecx, 0x5c
je 0x4747d8
mov edx, 1
imul eax, edx, 0
movsx ecx, byte [ebp + eax - 0x108]
test ecx, ecx
je 0x4747cc
mov edx, 1
shl edx, 0
movsx eax, byte [ebp + edx - 0x108]
cmp eax, 0x3a
je 0x4747d8
mov dword [ebp - 0x370], 0
jmp 0x4747e2
mov dword [ebp - 0x370], 1
mov cl, byte [ebp - 0x370]
mov byte [ebp - 0x343], cl
movzx edx, byte [ebp - 0x343]
test edx, edx
je 0x47482f
mov eax, dword [ebp - 0x350]
push eax
lea ecx, [ebp - 0x108]
push ecx
push 0x7bb394
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
push 0
call fcn.004731f0
add esp, 8
jmp 0x474879
mov ecx, dword [ebp - 0x350]
push ecx
lea edx, [ebp - 0x108]
push edx
mov eax, dword [ebp - 0x33c]
add eax, 0x140
push eax
push 0x7b5a24
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea edx, [ebp - 0x108]
push edx
mov eax, dword [ebp - 0x33c]
add eax, 0x140
push eax
call fcn.004731f0
add esp, 8
push 0
mov ecx, dword [ebp - 0x230]
push ecx
push 2
push 0
push 0
push 0x40000000
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x358], eax
cmp dword [ebp - 0x358], 0xffffffff
jne 0x4748b3
mov eax, 0x200
jmp 0x474a50
mov eax, dword [ebp - 0x33c]
mov ecx, dword [eax + 0x138]
push ecx
mov edx, dword [ebp - 0x33c]
mov eax, dword [edx]
push eax
call fcn.00479c70
add esp, 8
mov ecx, dword [ebp - 0x33c]
cmp dword [ecx + 0x13c], 0
jne 0x474905
push 0x4000
call fcn.0075c1c9
add esp, 4
mov dword [ebp - 0x374], eax
mov edx, dword [ebp - 0x33c]
mov eax, dword [ebp - 0x374]
mov dword [edx + 0x13c], eax
mov dword [ebp - 0x340], 0
cmp dword [ebp - 0x340], 0
jne 0x4749ee
lea ecx, [ebp - 0x344]
push ecx
push 0x4000
mov edx, dword [ebp - 0x33c]
mov eax, dword [edx + 0x13c]
push eax
mov ecx, dword [ebp - 0x33c]
mov edx, dword [ecx]
push edx
call fcn.0047a1e0
add esp, 0x10
mov dword [ebp - 0x354], eax
cmp dword [ebp - 0x354], 0xffffff96
jne 0x474964
mov dword [ebp - 0x340], 0x1000
jmp 0x4749ee
cmp dword [ebp - 0x354], 0
jge 0x474979
mov dword [ebp - 0x340], 0x5000000
jmp 0x4749ee
cmp dword [ebp - 0x354], 0
jle 0x4749c7
push 0
lea eax, [ebp - 0x37c]
push eax
mov ecx, dword [ebp - 0x354]
push ecx
mov edx, dword [ebp - 0x33c]
mov eax, dword [edx + 0x13c]
push eax
mov ecx, dword [ebp - 0x358]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x378], eax
cmp dword [ebp - 0x378], 0
jne 0x4749c7
mov dword [ebp - 0x340], 0x400
jmp 0x4749ee
movzx edx, byte [ebp - 0x344]
test edx, edx
je 0x4749d4
jmp 0x4749ee
cmp dword [ebp - 0x354], 0
jne 0x4749e9
mov dword [ebp - 0x340], 0x5000000
jmp 0x4749ee
jmp 0x47490f
cmp dword [ebp - 0x340], 0
jne 0x474a19
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x224]
push edx
mov eax, dword [ebp - 0x358]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [ebp + 0x14], 1
je 0x474a2c
mov ecx, dword [ebp - 0x358]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x33c]
mov eax, dword [edx]
push eax
call fcn.00479900
add esp, 4
cmp dword [ebp - 0x340], 0
je 0x474a4e
mov eax, dword [ebp - 0x340]
jmp 0x474a50
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0075c173
mov esp, ebp
pop ebp
ret 0x10