Function at 0x43c0b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4340
call fcn.005dc4c0
mov eax, dword [0x6b8dd8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x14]
cmp ecx, 3
je 0x43c0e5
cmp ecx, 2
je 0x43c0e5
cmp ecx, 1
jne 0x43c1ca
mov eax, dword [edi + 4]
cmp ecx, 3
jne 0x43c1aa
mov esi, dword [ebp + 8]
cmp esi, eax
je 0x43c14d
cmp eax, 0xffffffff
je 0x43c107
push dword [edi]
call fcn.0043ee10
add esp, 4
mov eax, dword [edi]
mov dword [edi + 4], 0xffffffff
cmp esi, dword [eax + 4]
jge 0x43c1ca
cmp dword [eax + 0x10], esi
jle 0x43c12c
push eax
call fcn.0043eec0
mov eax, dword [edi]
add esp, 4
cmp dword [eax + 0x10], esi
jge 0x43c141
nop
push dword [edi]
call fcn.0043ef10
mov eax, dword [edi]
add esp, 4
cmp dword [eax + 0x10], esi
jl 0x43c130
push eax
call fcn.0043f0e0
add esp, 4
mov dword [edi + 4], esi
push dword [ebp + 0x10]
push ebx
push dword [edi]
call fcn.0043f3c0
mov esi, eax
add esp, 0xc
test esi, esi
jle 0x43c179
pop edi
pop esi
mov eax, 0x600
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005db6f9
mov esp, ebp
pop ebp
ret 0x10
push dword [edi]
call fcn.0043ee10
add esp, 4
mov dword [edi + 4], 0xffffffff
test esi, esi
je 0x43c254
pop edi
pop esi
mov eax, 0x5000000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005db6f9
mov esp, ebp
pop ebp
ret 0x10
cmp eax, 0xffffffff
je 0x43c1b9
push dword [edi]
call fcn.0043ee10
add esp, 4
mov eax, dword [edi]
mov esi, dword [ebp + 8]
mov dword [edi + 4], 0xffffffff
cmp esi, dword [eax + 4]
jl 0x43c1e2
pop edi
pop esi
mov eax, 0x10000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005db6f9
mov esp, ebp
pop ebp
ret 0x10
cmp dword [eax + 0x10], esi
jle 0x43c1f5
push eax
call fcn.0043eec0
mov eax, dword [edi]
add esp, 4
cmp dword [eax + 0x10], esi
jge 0x43c208
push dword [edi]
call fcn.0043ef10
mov eax, dword [edi]
add esp, 4
cmp dword [eax + 0x10], esi
jl 0x43c1f7
lea eax, [ebp - 0x4338]
mov ecx, edi
push eax
push esi
call fcn.0043b940
test byte [ebp - 0x4230], 0x10
je 0x43c269
cmp dword [ebp + 0x14], 1
je 0x43c254
push 0x103
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x4334]
push eax
call fcn.0043be40
lea eax, [ebp - 0x20c]
push eax
lea eax, [edi + 0x138]
push eax
call fcn.0043b680
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005db6f9
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [ebp + 0x14]
cmp esi, 1
je 0x43c392
movzx eax, word [ebx]
mov esi, ebx
mov ecx, ebx
test ax, ax
je 0x43c373
mov edx, eax
cmp dx, 0x2f
je 0x43c293
cmp dx, 0x5c
jne 0x43c296
lea esi, [ecx + 2]
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x43c287
cmp esi, ebx
je 0x43c373
lea edx, [ebp - 0x20c]
mov ecx, ebx
sub edx, ebx
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x43c2c0
sub esi, ebx
sar esi, 1
lea esi, [esi*2 - 2]
cmp esi, 0x208
jae 0x43c482
xor eax, eax
mov word [ebp + esi - 0x20c], ax
mov ax, word [ebp - 0x20c]
cmp ax, 0x2f
je 0x43c315
cmp ax, 0x5c
je 0x43c315
cmp word [ebp - 0x20a], 0x3a
mov byte [ebp - 0x4339], 0
jne 0x43c31c
mov byte [ebp - 0x4339], 1
lea eax, [ebp - 0x20c]
push 0x629280
push eax
call fcn.005f501a
mov esi, eax
lea eax, [ebp - 0x20c]
push 0x629288
push eax
call fcn.005f501a
movzx ecx, byte [ebp - 0x4339]
add esp, 0x10
test eax, eax
mov eax, 1
setne dl
test esi, esi
cmovne ecx, eax
or dl, cl
jne 0x43c373
lea eax, [ebp - 0x20c]
push eax
lea eax, [edi + 0x138]
push eax
call fcn.0043b680
add esp, 8
push 0
push dword [ebp - 0x4230]
push 2
push 0
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, dword [ebp + 0x14]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x43c3af
pop edi
pop esi
mov eax, 0x200
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005db6f9
mov esp, ebp
pop ebp
ret 0x10
push dword [edi]
call fcn.0043f0e0
push 0x4000
lea eax, [ebp - 0x420c]
mov byte [ebp - 0x4339], 0
push eax
push dword [edi]
call fcn.0043f3c0
add esp, 0x10
test eax, eax
js 0x43c40f
je 0x43c416
push 0
lea ecx, [ebp - 0x4340]
push ecx
push eax
lea eax, [ebp - 0x420c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43c40f
push 0x4000
lea eax, [ebp - 0x420c]
push eax
push dword [edi]
call fcn.0043f3c0
add esp, 0xc
test eax, eax
jns 0x43c3d7
mov byte [ebp - 0x4339], 1
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x43c447
cmp byte [ebp - 0x4339], 0
jne 0x43c447
lea eax, [ebp - 0x421c]
push eax
lea eax, [ebp - 0x422c]
push eax
lea eax, [ebp - 0x4224]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp esi, 1
je 0x43c453
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [edi]
call fcn.0043ee10
add esp, 4
cmp byte [ebp - 0x4339], 0
je 0x43c254
mov ecx, dword [ebp - 4]
mov eax, 0x400
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005db6f9
mov esp, ebp
pop ebp
ret 0x10
call fcn.005db82b
int3