Function at 0x43ded0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x654
mov eax, dword [0x53f1e4]
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 0x43df25
cmp dword [eax], 1
je 0x43defe
mov eax, 0x80000
jmp 0x43e1f9
mov esi, dword [eax + 4]
cmp dword [esi + 4], 0xffffffff
mov dword [ebp - 0x64c], esi
je 0x43df14
mov edi, dword [esi]
call fcn.0043c930
mov edi, dword [ebp + 0xc]
mov dword [esi + 4], 0xffffffff
mov esi, dword [esi]
cmp edi, dword [esi + 4]
jl 0x43df2f
mov eax, 0x10000
jmp 0x43e1f9
cmp edi, dword [esi + 0x10]
jge 0x43df39
call fcn.0043bfd0
mov esi, dword [ebp - 0x64c]
mov eax, dword [esi]
cmp dword [eax + 0x10], edi
jge 0x43df9b
mov esi, dword [esi]
test esi, esi
je 0x43df8c
cmp dword [esi + 0x18], 0
je 0x43df8c
mov eax, dword [esi + 0x10]
inc eax
cmp eax, dword [esi + 4]
je 0x43df8c
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.0043bbb0
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 0x43df46
push edi
lea edx, [ebp - 0x648]
mov ecx, esi
call fcn.0043cc10
mov eax, dword [ebp - 0x43c]
shr eax, 4
test al, 1
movzx eax, word [ebx]
je 0x43dff8
cmp eax, 0x2f
je 0x43dfcf
cmp eax, 0x5c
je 0x43dfcf
test ax, ax
je 0x43dfe1
cmp word [ebx + 2], 0x3a
jne 0x43dfe1
push ebx
push 0
call fcn.0043d3a0
add esp, 8
xor eax, eax
jmp 0x43e1f9
push ebx
add esi, 0x244
push esi
call fcn.0043d3a0
add esp, 8
xor eax, eax
jmp 0x43e1f9
xor ecx, ecx
mov word [ebp - 0x418], cx
mov esi, ebx
mov ecx, ebx
test ax, ax
je 0x43e02b
lea ebx, [ebx]
cmp ax, 0x2f
je 0x43e01c
cmp ax, 0x5c
jne 0x43e01f
lea esi, [ecx + 2]
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x43e010
push 0x104
lea edx, [ebp - 0x210]
push ebx
push edx
call fcn.004b4709
add esp, 0xc
cmp esi, ebx
jne 0x43e0b4
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.0043e310
lea eax, [ebp - 0x210]
push eax
push ebx
call fcn.0043d3a0
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 0x43e125
mov eax, 0x200
jmp 0x43e1f9
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 0x43e0ee
cmp ax, 0x5c
je 0x43e0ee
test ax, ax
je 0x43e04d
cmp word [ebp - 0x20e], 0x3a
jne 0x43e04d
push esi
lea eax, [ebp - 0x210]
push eax
push 0x506a84
lea edx, [ebp - 0x418]
call fcn.0043e310
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
push 0
call fcn.0043d3a0
mov edi, dword [ebp - 0x64c]
add esp, 8
jmp 0x43e082
mov eax, dword [edi + 0x23c]
mov ebx, dword [edi]
push eax
call fcn.0043c480
mov ebx, dword [ebp - 0x64c]
add esp, 4
cmp dword [ebx + 0x240], 0
jne 0x43e158
push 0x4000
call fcn.0046b32d
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.0043c5f0
mov edi, eax
add esp, 8
cmp edi, 0xffffff96
je 0x43e20f
test edi, edi
js 0x43e1b9
jle 0x43e1ac
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 0x43e21b
cmp byte [ebp - 0x64d], 0
jne 0x43e1c3
test edi, edi
jne 0x43e162
mov dword [ebp - 0x64c], 0x5000000
mov edi, dword [ebx]
call fcn.0043c930
mov edi, dword [ebp - 0x64c]
test edi, edi
jne 0x43e1f0
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 [0x543078], eax
pop ebx
call fcn.004b1681
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x64c], 0x1000
jmp 0x43e1c3
mov dword [ebp - 0x64c], 0x400
jmp 0x43e1c3