Function at 0x10043f1b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
push ebx
mov ebx, dword [ebp + 0x14]
cmp ebx, 3
push esi
push edi
mov esi, ecx
je 0x10043f4d
cmp ebx, 2
je 0x10043ff5
cmp ebx, 1
je 0x10043ff5
mov eax, 0x10000
jmp 0x10044258
mov eax, dword [esi + 4]
mov edi, dword [ebp + 8]
cmp edi, eax
je 0x10043f9c
cmp eax, 0xffffffff
je 0x10043f64
push dword [esi]
call fcn.10041e84
pop ecx
mov eax, dword [esi]
or dword [esi + 4], 0xffffffff
cmp edi, dword [eax + 4]
jge 0x10043f43
cmp edi, dword [eax + 0x10]
jge 0x10043f84
push eax
call fcn.10041b06
jmp 0x10043f83
push dword [esi]
call fcn.10041b44
pop ecx
mov eax, dword [esi]
cmp dword [eax + 0x10], edi
jl 0x10043f7c
push dword [esi + 0x138]
push eax
call fcn.10043ae1
pop ecx
pop ecx
mov dword [esi + 4], edi
lea eax, [ebp + 0xf]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi]
call fcn.10043c41
mov edi, eax
add esp, 0x10
test edi, edi
jg 0x10043fc2
push dword [esi]
call fcn.10041e84
or dword [esi + 4], 0xffffffff
pop ecx
cmp byte [ebp + 0xf], 0
je 0x10043fcf
xor eax, eax
jmp 0x10044258
test edi, edi
jle 0x10043fdd
mov eax, 0x600
jmp 0x10044258
xor eax, eax
cmp edi, 0xffffff96
setne al
dec eax
and eax, 0xfb001000
add eax, 0x5000000
jmp 0x10044258
cmp dword [esi + 4], 0xffffffff
je 0x10044003
push dword [esi]
call fcn.10041e84
pop ecx
mov eax, dword [esi]
mov edi, dword [ebp + 8]
or dword [esi + 4], 0xffffffff
cmp edi, dword [eax + 4]
jge 0x10043f43
cmp edi, dword [eax + 0x10]
jge 0x1004402a
push eax
call fcn.10041b06
jmp 0x10044029
push dword [esi]
call fcn.10041b44
pop ecx
mov eax, dword [esi]
cmp dword [eax + 0x10], edi
jl 0x10044022
lea eax, [ebp - 0x234]
push eax
push edi
mov ecx, esi
call fcn.100420a8
test byte [ebp - 0x12c], 0x10
je 0x10044083
cmp ebx, 1
je 0x10043fc8
mov ecx, dword [ebp + 0xc]
mov al, byte [ecx]
cmp al, 0x2f
je 0x10044069
cmp al, 0x5c
je 0x10044069
test al, al
je 0x1004406e
cmp byte [ecx + 1], 0x3a
jne 0x1004406e
push ecx
push 0
jmp 0x10044076
push ecx
add esi, 0x140
push esi
call fcn.10042578
pop ecx
xor eax, eax
jmp 0x10044257
cmp ebx, 1
jne 0x10044090
mov eax, dword [ebp + 0xc]
jmp 0x10044117
mov edi, dword [ebp + 0xc]
mov al, byte [edi]
mov ebx, edi
mov ecx, edi
jmp 0x100440a9
cmp al, 0x2f
je 0x100440a3
cmp al, 0x5c
jne 0x100440a6
lea ebx, [ecx + 1]
inc ecx
mov al, byte [ecx]
test al, al
jne 0x1004409b
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.1004d070
cmp ebx, edi
pop ecx
pop ecx
jne 0x10044129
mov byte [ebp - 0x108], 0
push ebx
lea eax, [ebp - 0x108]
push eax
lea edi, [esi + 0x140]
push edi
lea eax, [ebp - 0x338]
push 0x100a1354
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x108]
push eax
push edi
call fcn.10042578
add esp, 0x1c
xor eax, eax
push eax
push dword [ebp - 0x12c]
push 2
push eax
push eax
push 0x40000000
lea eax, [ebp - 0x338]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x10044191
mov eax, 0x200
jmp 0x10044258
mov eax, ebx
sub eax, edi
mov byte [ebp + eax - 0x108], 0
cmp byte [ebp - 0x108], 0x2f
je 0x10044161
cmp byte [ebp - 0x108], 0x5c
je 0x10044161
cmp byte [ebp - 0x108], 0
je 0x100440c7
cmp byte [ebp - 0x107], 0x3a
jne 0x100440c7
push ebx
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x338]
push 0x1009c910
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x108]
push eax
push 0
call fcn.10042578
add esp, 0x18
jmp 0x100440f8
push dword [esi + 0x138]
push dword [esi]
call fcn.10043ae1
cmp dword [esi + 0x13c], 0
pop ecx
pop ecx
mov ebx, 0x4000
jne 0x100441bb
push ebx
call fcn.1004adc9
pop ecx
mov dword [esi + 0x13c], eax
and dword [ebp + 0x10], 0
lea eax, [ebp + 0xf]
push eax
push ebx
push dword [esi + 0x13c]
push dword [esi]
call fcn.10043c41
mov edi, eax
add esp, 0x10
cmp edi, 0xffffff96
je 0x1004420e
test edi, edi
jl 0x10044205
jle 0x100441fb
push 0
lea eax, [ebp - 4]
push eax
push edi
push dword [esi + 0x13c]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10044217
cmp byte [ebp + 0xf], 0
jne 0x10044220
test edi, edi
jne 0x100441bf
mov dword [ebp + 0x10], 0x5000000
jmp 0x1004423e
mov dword [ebp + 0x10], 0x1000
jmp 0x1004423e
mov dword [ebp + 0x10], 0x400
jmp 0x1004423e
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x120]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [ebp + 0x14], 1
je 0x1004424d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi]
call fcn.10041e84
mov eax, dword [ebp + 0x10]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x10