Function at 0x43f400
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
test ebp, ebp
je 0x43f41a
lea edi, [ebp + 8]
mov dword [esp + 0x1c], edi
jmp 0x43f41e
mov edi, dword [esp + 0x1c]
mov al, byte [edi]
test al, al
jne 0x43f45a
mov eax, dword [0x4a3440]
cmp byte [eax + 0xe4], 0
mov dword [eax + 0x30], 0x57
je 0x43f713
mov ecx, dword [esp + 0x18]
push 0x4957f9
push 0
push 0x496ed0
call fcn.0042cdb0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
test ebp, ebp
je 0x43f463
mov esi, dword [ebp + 4]
jmp 0x43f465
xor esi, esi
test esi, esi
setne cl
cmp al, 0x2a
sete al
test al, al
je 0x43f4c3
inc edi
cmp byte [edi], 0
mov dword [esp + 0x1c], edi
jne 0x43f5fe
call fcn.00481d92
add eax, 0x20
push eax
push ebx
call fcn.00483bed
add esp, 8
cmp eax, 0xffffffff
sete cl
mov byte [esp + 0x1c], cl
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x4a3440]
mov ecx, dword [esp + 0x18]
mov dword [edx + 0x30], eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
call fcn.0042cea0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
test cl, cl
jne 0x43f740
mov ecx, dword [0x4a6c10]
test ecx, ecx
je 0x43f5e9
mov al, byte [ecx + 0x17]
test al, al
jne 0x43f4e8
mov edx, dword [ecx + 0xc]
mov dl, byte [edx + 0x17]
jmp 0x43f4ea
mov dl, al
cmp dl, 3
jne 0x43f502
mov eax, dword [esp + 0x18]
push edi
push eax
call fcn.0043f7a0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
test al, al
jne 0x43f509
mov ecx, dword [ecx + 0xc]
mov cl, byte [ecx + 0x15]
test cl, 1
je 0x43f5e9
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x43f56d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4a3440]
cmp byte [ecx + 0xe4], 0
mov dword [ecx + 0x30], eax
jne 0x43f43d
mov edx, dword [0x4a7474]
push 1
push 0
push 0xffffffffffffffff
push 0x496ed0
push edx
call fcn.004716d0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov esi, dword [0x4a6c10]
cmp byte [esi + 0x17], 0
jne 0x43f57c
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x43f589
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x43f5a2
test byte [esi + 0x15], 4
je 0x43f59d
mov eax, esi
call fcn.0042d890
mov esi, dword [esi + 8]
jmp 0x43f5b4
cmp al, 2
jne 0x43f5af
call fcn.00401000
mov esi, eax
jmp 0x43f5b4
mov esi, 0x4a857d
mov eax, dword [0x4a6c10]
call fcn.00412b20
mov edx, dword [eax]
push 0
lea ecx, [esp + 0x20]
push ecx
push edx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
sete dl
jmp 0x43f781
push 0x49a690
push ebx
call fcn.004827f2
add esp, 8
test eax, eax
setne al
jmp 0x43f606
test cl, cl
jne 0x43f740
mov ebp, dword [esp + 0x18]
xor ebx, ebx
test al, al
setne bl
dec ebx
and ebx, 4
or ebx, 2
cmp byte [ebp + 1], 2
jbe 0x43f631
mov eax, dword [0x4a6bc8]
call fcn.00413ea0
mov edi, eax
mov eax, dword [0x4a3440]
jmp 0x43f63c
mov eax, dword [0x4a3440]
mov edi, dword [eax + 0xd8]
cmp edi, 0xffffffff
jne 0x43f670
cmp byte [eax + 0xe4], 0
mov dword [eax + 0x30], 0x57
je 0x43f54e
push 0x4957f9
push 0
push 0x496ed0
mov ecx, ebp
call fcn.0042cdb0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
cmp edi, 0xfde9
jne 0x43f67d
or ebx, 0x10
jmp 0x43f688
cmp edi, 0x4b0
jne 0x43f688
or ebx, 0x20
push 0x38
call fcn.00483a61
add esp, 4
test eax, eax
je 0x43f6a1
mov esi, eax
call fcn.00414060
mov esi, eax
jmp 0x43f6a3
xor esi, esi
test esi, esi
jne 0x43f6c1
push 0x4957f9
push esi
push str.Out_of_memory.
mov ecx, ebp
call fcn.0042d070
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi]
mov edx, dword [eax + 4]
push ebx
push ecx
mov ecx, esi
mov dword [esi + 8], 0
call edx
test al, al
je 0x43f6ed
mov eax, edi
and eax, 0x7fffffff
mov ecx, esi
call fcn.0046c750
test al, al
jne 0x43f731
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4a3440]
cmp byte [ecx + 0xe4], 0
mov dword [ecx + 0x30], eax
jne 0x43f655
mov eax, dword [0x4a7474]
push 1
push 0
push 0xffffffffffffffff
push 0x496ed0
push eax
call fcn.004716d0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
test ebp, ebp
je 0x43f740
mov dword [ebp + 4], esi
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43f745
sub eax, edx
je 0x43f762
push eax
push ebx
mov ebx, esi
call fcn.0046cd10
test eax, eax
jne 0x43f762
lea edi, [eax + 1]
jmp 0x43f764
xor edi, edi
test ebp, ebp
jne 0x43f776
test esi, esi
je 0x43f776
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
setne dl
mov ecx, dword [0x4a3440]
mov dword [ecx + 0x30], eax
mov ecx, dword [esp + 0x18]
movzx eax, dl
push eax
push ecx
call fcn.0042cea0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10