Function at 0x43c6cb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
mov eax, dword [0x478b78]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0xd4], 0
cmp dword [ebp + 0x10], 0xa
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
ja 0x43ca19
lea eax, [ebp - 0xd4]
push eax
push dword [ebp + 0x14]
call fcn.0040b0a6
test eax, eax
js 0x43ca10
mov eax, dword [ebp - 0xd4]
lea ecx, [ebp - 0xd4]
push 2
pop ebx
mul ebx
push ecx
push edx
push eax
call fcn.0040b0f9
test eax, eax
js 0x43ca10
mov eax, dword [ebp - 0xd4]
cmp eax, 1
jb 0x43ca10
push 8
pop ecx
dec eax
mov dword [ebp - 0xd4], eax
mul ecx
lea ecx, [ebp - 0xd4]
push ecx
push edx
push eax
call fcn.0040b0f9
test eax, eax
js 0x43ca10
mov eax, dword [ebp - 0xd4]
lea esi, [eax + 0x24]
mov dword [ebp - 0xe0], esi
cmp esi, eax
jb 0x43ca10
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call fcn.0046bf87
mov dword [ebp - 0xd4], eax
test eax, eax
jne 0x43ca1c
mov ecx, dword [ebp + 0x10]
push 2
pop eax
mov word [ebp - 0xd0], ax
or eax, 0xffffffff
mov word [ebp - 0xce], ax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xcc], eax
xor eax, eax
and dword [ebp - 0xbc], eax
mov word [ebp - 0xc8], ax
mov word [ebp - 0xc0], ax
mov eax, 0x7fbc
sub eax, dword [ebp + 0x14]
push ecx
push 0xca
mov word [ebp - 0xc2], cx
mov word [ebp - 0xbe], ax
call fcn.0043d62f
push dword [ebp + 0x10]
mov dword [ebp - 0xdc], eax
lea ecx, [eax + esi]
push ecx
call fcn.0043d62f
mov esi, dword [ebp + 0x10]
push esi
mov dword [ebp - 0xe4], eax
lea ecx, [eax + 0x12]
push ecx
call fcn.0043d62f
push esi
mov dword [ebp - 0xe8], eax
lea ecx, [eax + 0x12]
push ecx
call fcn.0043d62f
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0xd8], eax
mov word [eax + 0x10], cx
xor ecx, ecx
push ecx
push ecx
push dword [ebp - 0xe0]
mov word [eax + 0x12], cx
push dword [ebp - 0xdc]
mov dword [eax + 0x14], ecx
push 0xfffffffffffffffc
push 0xfffffffffffffffd
push ebx
mov dword [eax + 0x18], esi
call fcn.0043bebf
push 0
push dword [ebp - 0xe0]
lea eax, [ebp - 0x9c]
push dword [ebp - 0xdc]
push 0xfffffffffffffffd
push eax
call fcn.0043bf73
push 0
push 0x12
push dword [ebp - 0xe4]
lea eax, [ebp - 0xb8]
push 0xffffffffffffffff
push eax
call fcn.0043bf73
push 0
push 0x12
push dword [ebp - 0xe8]
lea eax, [ebp - 0xaa]
push 0xfffffffffffffffe
push eax
call fcn.0043bf73
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
push edi
call fcn.0046bf9b
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xd4], eax
test eax, eax
jne 0x43c8d7
push eax
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x43c8f7
mov dword [ebp - 0xd4], 0x2713
push esi
push edi
call fcn.0046bf9b
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0xd4]
jmp 0x43ca1c
push 0
lea eax, [ebp - 0xd4]
push eax
push 0xca
lea eax, [ebp - 0xd0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43c8cd
mov eax, dword [ebp - 0xdc]
push 0
push 0
add eax, esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x43c8cd
push 0
lea eax, [ebp - 0xd4]
push eax
push dword [ebp - 0xe0]
push dword [ebp - 0xd8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43c8cd
mov eax, dword [ebp - 0xd8]
xor ecx, ecx
push ecx
push ecx
push 0x12
push dword [ebp - 0xe4]
mov word [eax + 0x10], cx
push 0xfffffffffffffffc
push 0xffffffffffffffff
push ebx
call fcn.0043bebf
mov eax, dword [ebp - 0xe4]
push 0
push 0
add eax, esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x43c8cd
push 0
lea eax, [ebp - 0xd4]
push eax
push 0x12
push dword [ebp - 0xd8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43c8cd
push 0
push 0
push 0x12
push dword [ebp - 0xe8]
push 0xfffffffffffffffc
push 0xfffffffffffffffe
push ebx
call fcn.0043bebf
mov eax, dword [ebp - 0xe8]
push 0
push 0
add eax, esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x43c8cd
push 0
lea eax, [ebp - 0xd4]
push eax
push 0x12
push dword [ebp - 0xd8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43c8cd
and dword [ebp - 0xd4], 0
jmp 0x43c8de
push 0
call fcn.0046bf87
jmp 0x43ca1c
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00475d95
mov esp, ebp
pop ebp
ret 0x10