Function at 0x43eb80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x654
mov eax, dword [0x54b1b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
test eax, eax
je 0x43ebd5
cmp dword [eax], 1
je 0x43ebae
mov eax, 0x80000
jmp 0x43eea9
mov esi, dword [eax + 4]
cmp dword [esi + 4], 0xffffffff
mov dword [ebp - 0x64c], esi
je 0x43ebc4
mov edi, dword [esi]
call fcn.0043d5e0
mov edi, dword [ebp + 0xc]
mov dword [esi + 4], 0xffffffff
mov esi, dword [esi]
cmp edi, dword [esi + 4]
jl 0x43ebdf
mov eax, 0x10000
jmp 0x43eea9
cmp edi, dword [esi + 0x10]
jge 0x43ebe9
call fcn.0043cc80
mov esi, dword [ebp - 0x64c]
mov eax, dword [esi]
cmp dword [eax + 0x10], edi
jge 0x43ec4b
mov esi, dword [esi]
test esi, esi
je 0x43ec3c
cmp dword [esi + 0x18], 0
je 0x43ec3c
mov eax, dword [esi + 0x10]
inc eax
cmp eax, dword [esi + 4]
je 0x43ec3c
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.0043c860
add esp, 0x10
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x18], eax
mov ecx, dword [ebp - 0x64c]
mov edx, dword [ecx]
mov esi, ecx
cmp dword [edx + 0x10], edi
jl 0x43ebf6
push edi
lea edx, [ebp - 0x648]
mov ecx, esi
call fcn.0043d8c0
mov eax, dword [ebp - 0x43c]
shr eax, 4
test al, 1
movzx eax, word [ebx]
je 0x43eca8
cmp eax, 0x2f
je 0x43ec7f
cmp eax, 0x5c
je 0x43ec7f
test ax, ax
je 0x43ec91
cmp word [ebx + 2], 0x3a
jne 0x43ec91
push ebx
push 0
call fcn.0043e050
add esp, 8
xor eax, eax
jmp 0x43eea9
push ebx
add esi, 0x244
push esi
call fcn.0043e050
add esp, 8
xor eax, eax
jmp 0x43eea9
xor ecx, ecx
mov word [ebp - 0x418], cx
mov esi, ebx
mov ecx, ebx
test ax, ax
je 0x43ecdb
lea ebx, [ebx]
cmp ax, 0x2f
je 0x43eccc
cmp ax, 0x5c
jne 0x43eccf
lea esi, [ecx + 2]
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x43ecc0
push 0x104
lea edx, [ebp - 0x210]
push ebx
push edx
call fcn.004bd53b
add esp, 0xc
cmp esi, ebx
jne 0x43ed64
xor eax, eax
mov word [ebp - 0x210], ax
mov edi, dword [ebp - 0x64c]
push esi
lea edx, [ebp - 0x210]
push edx
lea ebx, [edi + 0x244]
push ebx
push str._s_s_s
lea edx, [ebp - 0x418]
call fcn.0043efc0
lea eax, [ebp - 0x210]
push eax
push ebx
call fcn.0043e050
add esp, 0x18
mov ecx, dword [ebp - 0x43c]
push 0
push ecx
push 2
push 0
push 0
push 0x40000000
lea edx, [ebp - 0x418]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43edd5
mov eax, 0x200
jmp 0x43eea9
mov ecx, esi
sub ecx, ebx
sar ecx, 1
xor edx, edx
mov word [ebp + ecx*2 - 0x210], dx
mov ax, word [ebp - 0x210]
cmp ax, 0x2f
je 0x43ed9e
cmp ax, 0x5c
je 0x43ed9e
test ax, ax
je 0x43ecfd
cmp word [ebp - 0x20e], 0x3a
jne 0x43ecfd
push esi
lea eax, [ebp - 0x210]
push eax
push 0x5104ec
lea edx, [ebp - 0x418]
call fcn.0043efc0
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
push 0
call fcn.0043e050
mov edi, dword [ebp - 0x64c]
add esp, 8
jmp 0x43ed32
mov eax, dword [edi + 0x23c]
mov ebx, dword [edi]
push eax
call fcn.0043d130
mov ebx, dword [ebp - 0x64c]
add esp, 4
cmp dword [ebx + 0x240], 0
jne 0x43ee08
push 0x4000
call fcn.00473ed3
add esp, 4
mov dword [ebx + 0x240], eax
mov dword [ebp - 0x64c], 0
mov edx, dword [ebx + 0x240]
mov eax, dword [ebx]
lea ecx, [ebp - 0x64d]
push ecx
push edx
mov ecx, 0x4000
call fcn.0043d2a0
mov edi, eax
add esp, 8
cmp edi, 0xffffff96
je 0x43eebf
test edi, edi
js 0x43ee69
jle 0x43ee5c
mov ecx, dword [ebx + 0x240]
push 0
lea eax, [ebp - 0x654]
push eax
push edi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43eecb
cmp byte [ebp - 0x64d], 0
jne 0x43ee73
test edi, edi
jne 0x43ee12
mov dword [ebp - 0x64c], 0x5000000
mov edi, dword [ebx]
call fcn.0043d5e0
mov edi, dword [ebp - 0x64c]
test edi, edi
jne 0x43eea0
lea edx, [ebp - 0x428]
push edx
lea eax, [ebp - 0x438]
push eax
lea ecx, [ebp - 0x430]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov dword [0x54ee74], eax
pop ebx
call fcn.004ba3af
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x64c], 0x1000
jmp 0x43ee73
mov dword [ebp - 0x64c], 0x400
jmp 0x43ee73