Function at 0x4123e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x35c
mov eax, dword [0x45e480]
xor eax, esp
mov dword [esp + 0x358], eax
push ebx
push ebp
mov ebp, dword [esp + 0x368]
push esi
or esi, 0xffffffff
push edi
mov ebx, ecx
cmp dword [ebp + 4], esi
je 0x412411
mov edi, dword [ebp]
call fcn.00411a30
mov edi, dword [esp + 0x374]
mov dword [ebp + 4], esi
mov esi, dword [ebp]
cmp edi, dword [esi + 4]
jl 0x41242d
mov eax, 0x10000
jmp 0x4126e6
cmp edi, dword [esi + 0x10]
jge 0x412437
call fcn.00411200
mov eax, dword [ebp]
cmp dword [eax + 0x10], edi
jge 0x41248f
nop
mov esi, dword [ebp]
test esi, esi
je 0x412487
cmp dword [esi + 0x18], 0
je 0x412487
mov eax, dword [esi + 0x10]
inc eax
cmp eax, dword [esi + 4]
je 0x412487
mov ecx, dword [esi + 0x50]
add ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x48]
push 0
lea ecx, [ecx + edx + 0x2e]
add dword [esi + 0x14], ecx
mov dword [esi + 0x10], eax
push 0
lea edx, [esi + 0x78]
push edx
lea eax, [esi + 0x28]
push eax
mov eax, esi
call fcn.00410da0
add esp, 0x10
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x18], eax
mov ecx, dword [ebp]
cmp dword [ecx + 0x10], edi
jl 0x412440
push edi
lea edx, [esp + 0x28]
mov ecx, ebp
call fcn.00411c00
test byte [esp + 0x12c], 0x10
mov al, byte [ebx]
je 0x4124e2
cmp al, 0x2f
je 0x4124b9
cmp al, 0x5c
je 0x4124b9
test al, al
je 0x4124cb
cmp byte [ebx + 1], 0x3a
jne 0x4124cb
push ebx
push 0
call fcn.004122d0
add esp, 8
xor eax, eax
jmp 0x4126e6
push ebx
add ebp, 0x140
push ebp
call fcn.004122d0
add esp, 8
xor eax, eax
jmp 0x4126e6
mov edi, ebx
mov ecx, ebx
test al, al
je 0x412503
lea ebx, [ebx]
cmp al, 0x2f
je 0x4124f8
cmp al, 0x5c
jne 0x4124fb
lea edi, [ecx + 1]
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x4124f0
lea edx, [esp + 0x154]
mov eax, ebx
sub edx, ebx
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x412510
cmp edi, ebx
jne 0x41258f
mov byte [esp + 0x154], cl
push edi
lea eax, [esp + 0x158]
push eax
lea esi, [ebp + 0x140]
push esi
lea ecx, [esp + 0x268]
push str._s_s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea edx, [esp + 0x154]
push edx
push esi
call fcn.004122d0
add esp, 8
mov eax, dword [esp + 0x12c]
xor edi, edi
push edi
push eax
push 2
push edi
push edi
push 0x40000000
lea ecx, [esp + 0x274]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4125f3
mov eax, 0x200
jmp 0x4126e6
mov edx, edi
sub edx, ebx
mov byte [esp + edx + 0x154], 0
mov al, byte [esp + 0x154]
cmp al, 0x2f
je 0x4125c0
cmp al, 0x5c
je 0x4125c0
test al, al
je 0x412525
cmp byte [esp + 0x155], 0x3a
jne 0x412525
push edi
lea eax, [esp + 0x158]
push eax
lea ecx, [esp + 0x264]
push str._s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x164]
push edx
push 0
call fcn.004122d0
add esp, 0x18
jmp 0x41255c
mov edx, dword [ebp + 0x138]
mov eax, dword [ebp]
push edx
call fcn.00411640
add esp, 4
cmp dword [ebp + 0x13c], edi
jne 0x412620
push 0x4000
call fcn.00413f49
add esp, 4
mov dword [ebp + 0x13c], eax
mov eax, dword [esp + 0x14c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
nop
mov edx, dword [ebp + 0x13c]
mov eax, dword [ebp]
lea ecx, [esp + 0x17]
push ecx
push edx
mov ecx, 0x4000
call fcn.004117c0
mov esi, eax
add esp, 8
cmp esi, 0xffffff96
je 0x4126a0
test esi, esi
jl 0x412696
jle 0x41268b
mov ecx, dword [ebp + 0x13c]
push 0
lea eax, [esp + 0x24]
push eax
push esi
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4126aa
mov eax, dword [0x4627dc]
add edi, dword [esp + 0x20]
test eax, eax
je 0x41268b
mov edx, dword [esp + 0x1c]
push edx
push edi
call eax
add esp, 8
cmp byte [esp + 0x17], 0
jne 0x4126b4
test esi, esi
jne 0x412630
mov dword [esp + 0x18], 0x5000000
jmp 0x4126d3
mov dword [esp + 0x18], 0x1000
jmp 0x4126d3
mov dword [esp + 0x18], 0x400
jmp 0x4126d3
lea eax, [esp + 0x140]
push eax
lea ecx, [esp + 0x134]
push ecx
lea edx, [esp + 0x140]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp]
call fcn.00411a30
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x368]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00430bbd
add esp, 0x35c
ret 8