Function at 0x43d290
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x660
mov eax, dword [0x507628]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
cmp dword [esi + 4], 0xffffffff
push edi
mov dword [ebp - 0x650], esi
mov ebx, edx
je 0x43d2bd
mov edi, dword [esi]
call fcn.0043c8d0
mov eax, dword [esi]
mov edi, dword [ebp + 8]
mov dword [esi + 4], 0xffffffff
cmp edi, dword [eax + 4]
jl 0x43d2e6
mov eax, 0x10000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0045ba17
mov esp, ebp
pop ebp
ret 4
cmp edi, dword [eax + 0x10]
jge 0x43d2f8
mov esi, eax
call fcn.0043c290
mov esi, dword [ebp - 0x650]
mov eax, dword [esi]
cmp dword [eax + 0x10], edi
jge 0x43d355
nop
mov esi, dword [esi]
test esi, esi
je 0x43d346
cmp dword [esi + 0x18], 0
je 0x43d346
mov eax, dword [esi + 0x10]
inc eax
cmp eax, dword [esi + 4]
je 0x43d346
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.0043c020
add esp, 0x10
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x18], eax
mov ecx, dword [ebp - 0x650]
mov edx, dword [ecx]
cmp dword [edx + 0x10], edi
mov esi, ecx
jl 0x43d300
push edi
lea edx, [ebp - 0x64c]
mov ecx, esi
call fcn.0043cb50
test byte [ebp - 0x440], 0x10
movzx eax, word [ebx]
je 0x43d3cc
cmp ax, 0x2f
je 0x43d387
cmp ax, 0x5c
je 0x43d387
test ax, ax
je 0x43d3a7
cmp word [ebx + 2], 0x3a
jne 0x43d3a7
push ebx
push 0
call fcn.0043d160
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0045ba17
mov esp, ebp
pop ebp
ret 4
push ebx
add esi, 0x244
push esi
call fcn.0043d160
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0045ba17
mov esp, ebp
pop ebp
ret 4
mov esi, ebx
mov ecx, ebx
test ax, ax
je 0x43d3f3
movzx eax, ax
cmp ax, 0x2f
je 0x43d3e4
cmp ax, 0x5c
jne 0x43d3e7
lea esi, [ecx + 2]
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x43d3d8
lea edx, [ebp - 0x214]
mov eax, ebx
sub edx, ebx
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x43d400
cmp esi, ebx
jne 0x43d4a2
xor eax, eax
mov word [ebp - 0x214], ax
mov ebx, dword [ebp - 0x650]
push esi
lea eax, [ebp - 0x214]
push eax
lea edi, [ebx + 0x244]
push edi
lea ecx, [ebp - 0x41c]
push str._s_s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea edx, [ebp - 0x214]
push edx
push edi
call fcn.0043d160
add esp, 8
mov eax, dword [ebp - 0x440]
push 0
push eax
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x41c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x658], eax
cmp eax, 0xffffffff
jne 0x43d512
mov eax, 0x200
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0045ba17
mov esp, ebp
pop ebp
ret 4
mov ecx, esi
sub ecx, ebx
sar ecx, 1
xor edx, edx
mov word [ebp + ecx*2 - 0x214], dx
mov ax, word [ebp - 0x214]
cmp ax, 0x2f
je 0x43d4dc
cmp ax, 0x5c
je 0x43d4dc
test ax, ax
je 0x43d420
cmp word [ebp - 0x212], 0x3a
jne 0x43d420
push esi
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x41c]
push 0x4f9c54
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [ebp - 0x214]
push edx
push 0
call fcn.0043d160
mov ebx, dword [ebp - 0x650]
add esp, 0x18
jmp 0x43d45a
mov edx, dword [ebx + 0x23c]
mov ebx, dword [ebx]
push edx
call fcn.0043c500
mov edi, dword [ebp - 0x650]
add esp, 4
cmp dword [edi + 0x240], 0
jne 0x43d545
push 0x4000
call fcn.0043e281
add esp, 4
mov dword [edi + 0x240], eax
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x650], 0
jmp 0x43d560
mov ecx, dword [edi + 0x240]
lea eax, [ebp - 0x651]
push eax
mov eax, dword [edi]
push ecx
mov ecx, 0x4000
call fcn.0043c670
mov esi, eax
add esp, 8
cmp esi, 0xffffff96
je 0x43d5c1
test esi, esi
jl 0x43d5b5
jle 0x43d5a8
mov eax, dword [edi + 0x240]
mov ecx, dword [ebp - 0x658]
push 0
lea edx, [ebp - 0x65c]
push edx
push esi
push eax
push ecx
call ebx
test eax, eax
je 0x43d5cd
cmp byte [ebp - 0x651], 0
jne 0x43d5d9
test esi, esi
jne 0x43d560
mov dword [ebp - 0x650], 0x5000000
jmp 0x43d5fb
mov dword [ebp - 0x650], 0x1000
jmp 0x43d5fb
mov dword [ebp - 0x650], 0x400
jmp 0x43d5fb
lea edx, [ebp - 0x42c]
push edx
mov edx, dword [ebp - 0x658]
lea eax, [ebp - 0x43c]
push eax
lea ecx, [ebp - 0x434]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov eax, dword [ebp - 0x658]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
call fcn.0043c8d0
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x650]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045ba17
mov esp, ebp
pop ebp
ret 4