Function at 0x42e030
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53e7f8
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x518
mov eax, dword [0x5a6900]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.00404860
test eax, eax
jle 0x42e949
lea ecx, [ebp + 0xc]
call fcn.00404860
test eax, eax
jle 0x42e949
push 0
push 0
push 0
push 0
push 1
push 0
lea ecx, [ebp - 0x28]
call fcn.0049c1b7
mov byte [ebp - 4], 2
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x34]
call fcn.0040da00
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.0040da00
mov byte [ebp - 4], 4
mov dword [ebp - 0x44], 0x3e8
push 0
push 0x3e8
push 2
lea ecx, [ebp - 0x28]
call fcn.0042e990
push 0
push 2
push 3
lea ecx, [ebp - 0x28]
call fcn.0042e990
mov dword [ebp - 0x48], 0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp + 8]
call fcn.00404880
push eax
call fcn.0049c771
push 0
push 0
movzx eax, word [ebp - 0x40]
push eax
lea ecx, [ebp - 0x34]
call fcn.00404880
push eax
lea ecx, [ebp - 0x28]
call fcn.0049cbb6
mov dword [ebp - 0x524], eax
mov ecx, dword [ebp - 0x524]
mov dword [ebp - 0x2c], ecx
push 0xa0000000
push 0
push 0
push 1
push 0
lea ecx, [ebp - 0x38]
call fcn.00404880
push eax
push 1
mov ecx, dword [ebp - 0x2c]
call fcn.0049cc6d
mov dword [ebp - 0x524], eax
mov eax, dword [ebp - 0x524]
mov dword [ebp - 0x30], eax
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x30]
call fcn.0049c742
mov dword [ebp - 0x524], eax
cmp dword [ebp - 0x524], 0
jne 0x42e2a6
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x30]
mov eax, dword [edx + 0x4c]
call eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edx + 0xc]
call eax
lea ecx, [ebp - 0x28]
call fcn.0049c801
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x51c], eax
mov ecx, dword [ebp - 0x51c]
mov dword [ebp - 0x520], ecx
cmp dword [ebp - 0x520], 0
je 0x42e1fa
push 1
mov edx, dword [ebp - 0x520]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x520]
mov edx, dword [eax + 4]
call edx
mov dword [ebp - 0x524], eax
mov eax, dword [ebp - 0x524]
mov dword [ebp - 0x528], eax
jmp 0x42e204
mov dword [ebp - 0x528], 0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x514], eax
mov ecx, dword [ebp - 0x514]
mov dword [ebp - 0x518], ecx
cmp dword [ebp - 0x518], 0
je 0x42e24b
push 1
mov edx, dword [ebp - 0x518]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x518]
mov edx, dword [eax + 4]
call edx
mov dword [ebp - 0x524], eax
mov eax, dword [ebp - 0x524]
mov dword [ebp - 0x528], eax
jmp 0x42e255
mov dword [ebp - 0x528], 0
mov byte [ebp - 0x50d], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.004047e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.004047e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.0049c897
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004047e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004047e0
mov al, byte [ebp - 0x50d]
jmp 0x42e971
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x30]
call fcn.0049bcf3
cmp dword [ebp - 0x4c], 0xc8
jne 0x42e677
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
lea ecx, [ebp + 0xc]
call fcn.00404880
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0xffffffff
jne 0x42e402
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x30]
mov eax, dword [edx + 0x4c]
call eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edx + 0xc]
call eax
lea ecx, [ebp - 0x28]
call fcn.0049c801
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x508], eax
mov ecx, dword [ebp - 0x508]
mov dword [ebp - 0x50c], ecx
cmp dword [ebp - 0x50c], 0
je 0x42e356
push 1
mov edx, dword [ebp - 0x50c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x50c]
mov edx, dword [eax + 4]
call edx
mov dword [ebp - 0x524], eax
mov eax, dword [ebp - 0x524]
mov dword [ebp - 0x528], eax
jmp 0x42e360
mov dword [ebp - 0x528], 0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x500], eax
mov ecx, dword [ebp - 0x500]
mov dword [ebp - 0x504], ecx
cmp dword [ebp - 0x504], 0
je 0x42e3a7
push 1
mov edx, dword [ebp - 0x504]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x504]
mov edx, dword [eax + 4]
call edx
mov dword [ebp - 0x524], eax
mov eax, dword [ebp - 0x524]
mov dword [ebp - 0x528], eax
jmp 0x42e3b1
mov dword [ebp - 0x528], 0
mov byte [ebp - 0x4f9], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.004047e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.004047e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.0049c897
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004047e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004047e0
mov al, byte [ebp - 0x4f9]
jmp 0x42e971
mov dword [ebp - 0x454], 0
mov dword [ebp - 0x458], 0x400
mov dword [ebp - 0x45c], 0
push 0
lea eax, [ebp - 0x458]
push eax
lea ecx, [ebp - 0x450]
push ecx
push 5
mov ecx, dword [ebp - 0x30]
call fcn.0049bcd5
mov dword [ebp - 0x524], eax
mov edx, dword [ebp - 0x524]
mov dword [ebp - 0x45c], edx
lea eax, [ebp - 0x450]
push eax
call fcn.004b256e
add esp, 4
mov dword [ebp - 0x454], eax
mov dword [ebp - 0x460], 0x2800
push 0x2800
call fcn.0048b8f7
add esp, 4
mov dword [ebp - 0x524], eax
mov eax, dword [ebp - 0x524]
mov dword [ebp - 0x4f8], eax
mov ecx, dword [ebp - 0x4f8]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x468], 0
mov eax, dword [ebp - 0x468]
mov dword [ebp - 0x464], eax
push 0x2800
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x30]
mov eax, dword [edx + 0x34]
call eax
mov dword [ebp - 0x524], eax
mov ecx, dword [ebp - 0x524]
mov dword [ebp - 0x46c], ecx
cmp dword [ebp - 0x46c], 0
jbe 0x42e534
push 0
lea eax, [ebp - 0x464]
push eax
mov ecx, dword [ebp - 0x46c]
push ecx
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x468]
add eax, dword [ebp - 0x464]
mov dword [ebp - 0x468], eax
push 0x2800
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x30]
mov eax, dword [edx + 0x34]
call eax
mov dword [ebp - 0x524], eax
mov ecx, dword [ebp - 0x524]
mov dword [ebp - 0x46c], ecx
jmp 0x42e4d1
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4f4], eax
mov ecx, dword [ebp - 0x4f4]
push ecx
call fcn.0048b8ec
add esp, 4
mov dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x30]
mov eax, dword [edx + 0x4c]
call eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edx + 0xc]
call eax
lea ecx, [ebp - 0x28]
call fcn.0049c801
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x4ec], eax
mov ecx, dword [ebp - 0x4ec]
mov dword [ebp - 0x4f0], ecx
cmp dword [ebp - 0x4f0], 0
je 0x42e5c6
push 1
mov edx, dword [ebp - 0x4f0]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x4f0]
mov edx, dword [eax + 4]
call edx
mov dword [ebp - 0x524], eax
mov eax, dword [ebp - 0x524]
mov dword [ebp - 0x528], eax
jmp 0x42e5d0
mov dword [ebp - 0x528], 0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x4e4], eax
mov ecx, dword [ebp - 0x4e4]
mov dword [ebp - 0x4e8], ecx
cmp dword [ebp - 0x4e8], 0
je 0x42e617
push 1
mov edx, dword [ebp - 0x4e8]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x4e8]
mov edx, dword [eax + 4]
call edx
mov dword [ebp - 0x524], eax
mov eax, dword [ebp - 0x524]
mov dword [ebp - 0x528], eax
jmp 0x42e621
mov dword [ebp - 0x528], 0
mov byte [ebp - 0x4dd], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.004047e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.004047e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.0049c897
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004047e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004047e0
mov al, byte [ebp - 0x4dd]
jmp 0x42e971
cmp dword [ebp - 0x48], 0
je 0x42e69c
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4dc], eax
mov ecx, dword [ebp - 0x4dc]
push ecx
call fcn.0048b8ec
add esp, 4
mov dword [ebp - 0x48], 0
cmp dword [ebp - 0x30], 0
je 0x42e707
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x30]
mov eax, dword [edx + 0x4c]
call eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x4d4], eax
mov ecx, dword [ebp - 0x4d4]
mov dword [ebp - 0x4d8], ecx
cmp dword [ebp - 0x4d8], 0
je 0x42e6f6
push 1
mov edx, dword [ebp - 0x4d8]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x4d8]
mov edx, dword [eax + 4]
call edx
mov dword [ebp - 0x524], eax
mov eax, dword [ebp - 0x524]
mov dword [ebp - 0x528], eax
jmp 0x42e700
mov dword [ebp - 0x528], 0
mov dword [ebp - 0x30], 0
cmp dword [ebp - 0x2c], 0
je 0x42e772
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edx + 0xc]
call eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x4cc], eax
mov ecx, dword [ebp - 0x4cc]
mov dword [ebp - 0x4d0], ecx
cmp dword [ebp - 0x4d0], 0
je 0x42e761
push 1
mov edx, dword [ebp - 0x4d0]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x4d0]
mov edx, dword [eax + 4]
call edx
mov dword [ebp - 0x524], eax
mov eax, dword [ebp - 0x524]
mov dword [ebp - 0x528], eax
jmp 0x42e76b
mov dword [ebp - 0x528], 0
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x28]
call fcn.0049c801
mov byte [ebp - 0x4c5], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.004047e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.004047e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.0049c897
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004047e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004047e0
mov al, byte [ebp - 0x4c5]
jmp 0x42e971
mov byte [ebp - 0x4ad], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004047e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004047e0
mov al, byte [ebp - 0x4ad]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004af76a
mov esp, ebp
pop ebp
ret