Function at 0x10040e7f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004f9c3
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x23c
mov eax, dword [0x1005a030]
xor eax, ebp
mov dword [ebp - 0x18], 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 - 0x22c], ecx
mov ax, word [0x10052d50]
mov word [ebp - 0x80], ax
mov cl, byte [0x10052d52]
mov byte [ebp - 0x7e], cl
mov edx, dword [0x10052d94]
mov dword [ebp - 0x28], edx
mov eax, dword [str.twP9tXg9F.]
mov dword [ebp - 0x24], eax
mov ecx, dword [0x10052d9c]
mov dword [ebp - 0x20], ecx
mov dx, word [0x10052da0]
mov word [ebp - 0x1c], dx
mov al, byte [0x10052da2]
mov byte [ebp - 0x1a], al
mov ecx, dword [str._UXL_0WPHO_]
mov dword [ebp - 0x6c], ecx
mov edx, dword [0x10053b5c]
mov dword [ebp - 0x68], edx
mov eax, dword [0x10053b60]
mov dword [ebp - 0x64], eax
mov ecx, dword [str.__tz8JYU]
mov dword [ebp - 0x60], ecx
mov edx, dword [0x10053d48]
mov dword [ebp - 0x5c], edx
mov al, byte [0x10053d4c]
mov byte [ebp - 0x58], al
mov ecx, dword [str.__tzAQW91PU]
mov dword [ebp - 0x78], ecx
mov edx, dword [0x10053dd8]
mov dword [ebp - 0x74], edx
mov eax, dword [0x10053ddc]
mov dword [ebp - 0x70], eax
push 0
lea ecx, [ebp - 0x28]
push ecx
call fcn.10030550
add esp, 8
push 0
lea edx, [ebp - 0x6c]
push edx
call fcn.10030550
add esp, 8
push 0
lea eax, [ebp - 0x60]
push eax
call fcn.10030550
add esp, 8
push 0
lea ecx, [ebp - 0x78]
push ecx
call fcn.10030550
add esp, 8
mov byte [ebp - 0x8c], 0
xor edx, edx
mov dword [ebp - 0x8b], edx
mov dword [ebp - 0x87], edx
mov byte [ebp - 0x83], dl
mov eax, dword [ebp - 0x22c]
mov ecx, dword [eax + 0x13528]
push ecx
lea edx, [ebp - 0x80]
push edx
lea eax, [ebp - 0x8c]
push eax
call fcn.1001aa93
add esp, 0xc
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0xa8]
call fcn.10001af0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x6c]
push edx
lea ecx, [ebp - 0x44]
call fcn.10001af0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0xa8]
push ecx
lea edx, [ebp - 0x104]
push edx
call fcn.10036220
add esp, 0xc
mov dword [ebp - 0x230], eax
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x234], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x234]
push edx
lea eax, [ebp - 0x120]
push eax
call fcn.10036220
add esp, 0xc
mov dword [ebp - 0x238], eax
mov ecx, dword [ebp - 0x238]
mov dword [ebp - 0x23c], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x23c]
push edx
lea ecx, [ebp - 0xa8]
call fcn.1000b190
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x120]
call fcn.10001b60
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x104]
call fcn.10001b60
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x13c]
push edx
call fcn.10036220
add esp, 0xc
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x244], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x78]
push ecx
mov edx, dword [ebp - 0x244]
push edx
lea eax, [ebp - 0x158]
push eax
call fcn.10036220
add esp, 0xc
mov dword [ebp - 0x248], eax
mov ecx, dword [ebp - 0x248]
mov dword [ebp - 0x24c], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x24c]
push edx
lea ecx, [ebp - 0x44]
call fcn.1000b190
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x158]
call fcn.10001b60
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x13c]
call fcn.10001b60
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x4c]
call fcn.100491c0
mov byte [ebp - 4], 6
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x7c], 0
lea ecx, [ebp - 0xa8]
call fcn.10001b90
push eax
lea ecx, [ebp - 0x174]
call fcn.10001af0
mov byte [ebp - 4], 7
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x190]
call fcn.10001af0
mov byte [ebp - 4], 8
push 0x200
lea ecx, [ebp - 0x7c]
push ecx
lea edx, [ebp - 0x174]
push edx
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x4c]
call fcn.10049320
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x190]
call fcn.10001b60
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x174]
call fcn.10001b60
push 0x100548fc
lea ecx, [ebp - 0xc4]
call fcn.10001af0
mov byte [ebp - 4], 9
cmp dword [ebp - 0x54], 0
je 0x10040e86
mov ecx, dword [ebp - 0x54]
push ecx
lea ecx, [ebp - 0xc4]
call fcn.10035370
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x54], 0
je 0x10040e69
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x194], edx
mov eax, dword [ebp - 0x194]
push eax
call fcn.1001b14f
add esp, 4
jmp 0x10040e78
mov dword [ebp - 4], 9
mov dword [ebp - 0x54], 0
lea ecx, [ebp - 0xc4]
call fcn.10001b90
push eax
call fcn.1001af29
add esp, 4
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x22c]
add ecx, 0x13840
push ecx
mov edx, dword [ebp - 0x22c]
add edx, 0x134ec
push edx
mov ecx, dword [ebp - 0x22c]
call fcn.1003fb40
mov ecx, dword [ebp - 0x22c]
mov byte [ecx + 0x1365f], al
mov edx, dword [ebp - 0x22c]
movzx eax, byte [edx + 0x1365f]
cmp eax, 1
jne 0x10040ee7
mov dword [ebp - 0x14], 1
mov ecx, dword [ebp - 0x22c]
mov edx, dword [ecx + 0x134ec]
cmp edx, dword [ebp - 0x50]
jl 0x10040f17
cmp dword [ebp - 0x50], 0xffffffff
jne 0x10041224
mov eax, dword [ebp - 0x22c]
mov ecx, dword [eax + 0x134ec]
cmp ecx, dword [ebp - 0x50]
je 0x10041224
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xd0], 0
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x1b0]
call fcn.10001af0
mov byte [ebp - 4], 0xc
push 0x200000
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x1b0]
push edx
lea ecx, [ebp - 0x4c]
call fcn.10049320
mov dword [ebp - 0xc8], eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x1b0]
call fcn.10001b60
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0xcc], eax
cmp dword [ebp - 0xc8], 0
je 0x10041224
cmp dword [ebp - 0xcc], 0
jle 0x10041224
mov dword [ebp - 0xdc], 0
lea ecx, [ebp - 0xd4]
push ecx
lea edx, [ebp - 0xdc]
push edx
mov eax, dword [ebp - 0xcc]
sub eax, 1
push eax
mov ecx, dword [ebp - 0xc8]
push ecx
call fcn.10031cd0
add esp, 0x10
mov dword [ebp - 0xd8], eax
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0xc8], 0
je 0x10040ff7
mov edx, dword [ebp - 0xc8]
mov dword [ebp - 0x1b4], edx
mov eax, dword [ebp - 0x1b4]
push eax
call fcn.1001b14f
add esp, 4
jmp 0x10041006
mov dword [ebp - 4], 9
mov dword [ebp - 0xc8], 0
cmp dword [ebp - 0xdc], 0
je 0x100411d7
cmp dword [ebp - 0xd8], 0
je 0x100411c8
mov ecx, dword [ebp - 0xd4]
push ecx
mov edx, dword [ebp - 0xdc]
push edx
mov eax, dword [ebp - 0x22c]
add eax, 0x134ec
push eax
mov ecx, dword [ebp - 0x22c]
call fcn.1003f1b0
mov ecx, dword [ebp - 0x22c]
mov byte [ecx + 0x1365f], al
mov edx, dword [ebp - 0x22c]
movzx eax, byte [edx + 0x1365f]
cmp eax, 1
jne 0x1004107b
mov dword [ebp - 0x14], 1
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
mov ecx, dword [ebp - 0x22c]
add ecx, 0x13840
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xe8], eax
cmp dword [ebp - 0xe8], 0xffffffff
jne 0x10041191
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x1b8], edx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xc4]
call fcn.10001b60
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.10049220
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.10001b60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
call fcn.10001b60
mov eax, dword [ebp - 0x1b8]
jmp 0x10041302
push 0
lea eax, [ebp - 0xe4]
push eax
mov ecx, dword [ebp - 0xd4]
push ecx
mov edx, dword [ebp - 0xdc]
push edx
mov eax, dword [ebp - 0xe8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0xe0], eax
mov ecx, dword [ebp - 0xe8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0xdc]
push edx
call fcn.1001bc62
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1bc], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xc4]
call fcn.10001b60
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.10049220
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.10001b60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
call fcn.10001b60
mov eax, dword [ebp - 0x1bc]
jmp 0x10041302
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c0], ecx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xc4]
call fcn.10001b60
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.10049220
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.10001b60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
call fcn.10001b60
mov eax, dword [ebp - 0x1c0]
jmp 0x10041302
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.1001a63f
mov esp, ebp
pop ebp
ret