Function at 0x43dfd0
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 0x43dfea
lea edi, [ebp + 8]
mov dword [esp + 0x1c], edi
jmp 0x43dfee
mov edi, dword [esp + 0x1c]
mov al, byte [edi]
test al, al
jne 0x43e028
mov eax, dword [0x49f430]
cmp byte [eax + 0xe0], 0
mov dword [eax + 0x30], 0x57
jne 0x43e374
mov eax, dword [0x4a3434]
push eax
or eax, 0xffffffff
mov ecx, 0x493f08
call fcn.004011f0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
test ebp, ebp
je 0x43e031
mov esi, dword [ebp + 4]
jmp 0x43e033
xor esi, esi
test esi, esi
setne cl
cmp al, 0x2a
sete al
test al, al
je 0x43e07f
inc edi
cmp byte [edi], 0
mov dword [esp + 0x1c], edi
jne 0x43e1c4
push 0xffffffffffffffff
call fcn.0047f0e2
add eax, 0x20
push eax
push ebx
call fcn.00480f3d
add esp, 8
cmp eax, 0xffffffff
mov eax, dword [esp + 0x1c]
sete cl
movzx edx, cl
push edx
push eax
call fcn.0042cc90
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
test cl, cl
jne 0x43e305
mov ecx, dword [0x4a2bd0]
test ecx, ecx
je 0x43e1af
mov al, byte [ecx + 0x17]
test al, al
jne 0x43e0a4
mov edx, dword [ecx + 0xc]
mov dl, byte [edx + 0x17]
jmp 0x43e0a6
mov dl, al
cmp dl, 3
jne 0x43e0be
mov eax, dword [esp + 0x18]
push edi
push eax
call fcn.0043e3a0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
test al, al
jne 0x43e0c5
mov ecx, dword [ecx + 0xc]
mov cl, byte [ecx + 0x15]
test cl, 1
je 0x43e1af
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 0x43e126
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x49f430]
mov dword [ecx + 0x30], eax
cmp byte [ecx + 0xe0], 0
jne 0x43e374
mov edx, dword [0x4a3434]
push edx
or eax, 0xffffffff
mov ecx, 0x493f08
call fcn.004011f0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov esi, dword [0x4a2bd0]
cmp byte [esi + 0x17], 0
jne 0x43e135
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x43e142
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x43e15b
test byte [esi + 0x15], 4
je 0x43e156
mov eax, esi
call fcn.0042d510
mov esi, dword [esi + 8]
jmp 0x43e16d
cmp al, 2
jne 0x43e168
call fcn.00401000
mov esi, eax
jmp 0x43e16d
mov esi, 0x4a453d
mov eax, dword [0x4a2bd0]
call fcn.00412820
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]
mov edx, dword [esp + 0x18]
test esi, esi
sete al
movzx ecx, al
push 0xffffffffffffffff
push ecx
push edx
call fcn.0042cc90
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
push 0x497508
push ebx
call fcn.0047fb42
add esp, 8
test eax, eax
setne al
jmp 0x43e1cc
test cl, cl
jne 0x43e305
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 0x43e1f7
mov eax, dword [0x4a2b88]
call fcn.00413f20
mov edi, eax
mov eax, dword [0x49f430]
jmp 0x43e202
mov eax, dword [0x49f430]
mov edi, dword [eax + 0xd4]
cmp edi, 0xffffffff
jne 0x43e238
cmp byte [eax + 0xe0], 0
mov dword [eax + 0x30], 0x57
jne 0x43e231
mov eax, dword [0x4a3434]
push eax
or eax, edi
mov ecx, 0x493f08
call fcn.004011f0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov ecx, ebp
jmp 0x43e378
cmp edi, 0xfde9
jne 0x43e245
or ebx, 0x10
jmp 0x43e250
cmp edi, 0x4b0
jne 0x43e250
or ebx, 0x20
push 0x34
call fcn.00480db1
add esp, 4
test eax, eax
je 0x43e269
mov esi, eax
call fcn.004140d0
mov esi, eax
jmp 0x43e26b
xor esi, esi
test esi, esi
jne 0x43e289
push 0x4927e9
push esi
push str.Out_of_memory.
mov ecx, ebp
call fcn.0042cd00
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov edx, dword [esi]
mov eax, dword [esp + 0x1c]
mov edx, dword [edx + 4]
push ebx
push eax
mov ecx, esi
mov dword [esi + 8], 0
call edx
test al, al
je 0x43e2b5
mov eax, edi
and eax, 0x7fffffff
mov ecx, esi
call fcn.00469f10
test al, al
jne 0x43e2f6
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 [0x49f430]
cmp byte [ecx + 0xe0], 0
mov dword [ecx + 0x30], eax
jne 0x43e231
mov eax, dword [0x4a3434]
push eax
or eax, 0xffffffff
mov ecx, 0x493f08
call fcn.004011f0
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 0x43e305
mov dword [ebp + 4], esi
mov eax, ebx
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43e310
sub eax, edx
je 0x43e32d
push eax
push ebx
mov ebx, esi
call fcn.0046a4b0
test eax, eax
jne 0x43e32d
lea edi, [eax + 1]
jmp 0x43e32f
xor edi, edi
test ebp, ebp
jne 0x43e341
test esi, esi
je 0x43e341
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x49f430]
mov dword [ecx + 0x30], eax
test edi, edi
jne 0x43e0fd
mov ecx, dword [0x4a3434]
push ecx
or eax, 0xffffffff
mov ecx, 0x492860
call fcn.004011f0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov ecx, dword [esp + 0x18]
push 0x4927e9
push 0
push 0x493f08
call fcn.0042c9e0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10