Function at 0x428930
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4eb250
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5382cc]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5382cc]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x24], eax
mov eax, dword [ecx + 0x10]
xor ebx, ebx
cmp eax, ebx
jne 0x428b4e
mov ebp, dword [ecx + 4]
mov ecx, dword [ecx + 8]
cmp ecx, 0x20
jl 0x428999
cmp dword [ebp], 0x6c7a6d61
jne 0x428999
cmp dword [ebp + 4], 1
jbe 0x4289a3
lea eax, [ebx + 0x66]
jmp 0x428b4e
mov eax, 0x65
jmp 0x428b4e
mov edx, dword [ebp + 0xc]
lea eax, [edx + 0x20]
cmp eax, ecx
je 0x4289b7
mov eax, 0x67
jmp 0x428b4e
lea eax, [ebp + 0x20]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], eax
mov byte [esp + 0x30], bl
mov dword [esp + 0x50], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
mov byte [esp + 0x1c], 0
mov byte [esp + 0x50], 1
mov edi, dword [ebp + 8]
lea esi, [esp + 0x14]
call fcn.00428800
mov ecx, esi
lea eax, [esp + 0x28]
call fcn.004288c0
mov esi, eax
cmp esi, ebx
je 0x428a18
cmp byte [esp + 0x1c], 0
je 0x428a11
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x428a11
push eax
call fcn.004b5d21
add esp, 4
mov eax, esi
jmp 0x428b4e
mov ecx, dword [esp + 0x18]
cmp ecx, dword [ebp + 8]
je 0x428a43
cmp byte [esp + 0x1c], 0
je 0x428a39
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x428a39
push eax
call fcn.004b5d21
add esp, 4
mov eax, 0x69
jmp 0x428b4e
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x34]
xor eax, eax
push edx
push ecx
push esi
mov byte [esp + 0x40], 0
mov dword [esp + 0x41], eax
mov dword [esp + 0x45], eax
mov dword [esp + 0x49], eax
mov word [esp + 0x4d], ax
mov byte [esp + 0x4f], al
call fcn.004665f1
lea eax, [ebp + 0x10]
lea edx, [esp + 0x40]
add esp, 0xc
mov ecx, 0x10
sub edx, eax
mov edi, dword [edx + eax]
cmp edi, dword [eax]
jne 0x428ad1
sub ecx, 4
add eax, 4
cmp ecx, 4
jae 0x428a80
mov eax, dword [esp + 0x24]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x428aec
cmp byte [esp + 0x1c], 0
je 0x428ac7
cmp esi, ebx
je 0x428ac7
push esi
call fcn.004b5d21
add esp, 4
mov eax, 0x6b
jmp 0x428b4e
cmp byte [esp + 0x1c], 0
je 0x428ae5
cmp esi, ebx
je 0x428ae5
push esi
call fcn.004b5d21
add esp, 4
mov eax, 0x68
jmp 0x428b4e
mov ebp, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x24]
push ecx
push ebp
push esi
mov dword [esp + 0x30], ebx
push edi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x428b10
cmp dword [esp + 0x20], ebp
je 0x428b12
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x428b38
cmp byte [esp + 0x1c], 0
je 0x428b31
test esi, esi
je 0x428b31
push esi
call fcn.004b5d21
add esp, 4
mov eax, 0x6c
jmp 0x428b4e
cmp byte [esp + 0x1c], 0
je 0x428b4c
test esi, esi
je 0x428b4c
push esi
call fcn.004b5d21
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004b46ff
add esp, 0x40
ret 4