Function at 0x10040d5f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10050b03
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x23c
mov eax, dword [0x1005b030]
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 [0x10053d60]
mov word [ebp - 0x80], ax
mov cl, byte [0x10053d62]
mov byte [ebp - 0x7e], cl
mov edx, dword [0x10053da4]
mov dword [ebp - 0x28], edx
mov eax, dword [str.twP9tXg9F.]
mov dword [ebp - 0x24], eax
mov ecx, dword [0x10053dac]
mov dword [ebp - 0x20], ecx
mov dx, word [0x10053db0]
mov word [ebp - 0x1c], dx
mov al, byte [0x10053db2]
mov byte [ebp - 0x1a], al
mov ecx, dword [str._UXL_0WPHO_]
mov dword [ebp - 0x6c], ecx
mov edx, dword [0x10054b6c]
mov dword [ebp - 0x68], edx
mov eax, dword [0x10054b70]
mov dword [ebp - 0x64], eax
mov ecx, dword [str.__tz8JYU]
mov dword [ebp - 0x60], ecx
mov edx, dword [0x10054d58]
mov dword [ebp - 0x5c], edx
mov al, byte [0x10054d5c]
mov byte [ebp - 0x58], al
mov ecx, dword [str.__tzAQW91PU]
mov dword [ebp - 0x78], ecx
mov edx, dword [0x10054de8]
mov dword [ebp - 0x74], edx
mov eax, dword [0x10054dec]
mov dword [ebp - 0x70], eax
push 0
lea ecx, [ebp - 0x28]
push ecx
call fcn.10030440
add esp, 8
push 0
lea edx, [ebp - 0x6c]
push edx
call fcn.10030440
add esp, 8
push 0
lea eax, [ebp - 0x60]
push eax
call fcn.10030440
add esp, 8
push 0
lea ecx, [ebp - 0x78]
push ecx
call fcn.10030440
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.1001a983
add esp, 0xc
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0xa8]
call fcn.10001ac0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x6c]
push edx
lea ecx, [ebp - 0x44]
call fcn.10001ac0
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.10036070
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.10036070
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.1000b170
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x120]
call fcn.10001b30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x104]
call fcn.10001b30
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x13c]
push edx
call fcn.10036070
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.10036070
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.1000b170
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x158]
call fcn.10001b30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x13c]
call fcn.10001b30
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x4c]
call fcn.1004a300
mov byte [ebp - 4], 6
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x7c], 0
lea ecx, [ebp - 0xa8]
call fcn.10001b60
push eax
lea ecx, [ebp - 0x174]
call fcn.10001ac0
mov byte [ebp - 4], 7
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x190]
call fcn.10001ac0
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.1004a460
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x190]
call fcn.10001b30
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x174]
call fcn.10001b30
push 0x10055934
lea ecx, [ebp - 0xc4]
call fcn.10001ac0
mov byte [ebp - 4], 9
cmp dword [ebp - 0x54], 0
je 0x10040d66
mov ecx, dword [ebp - 0x54]
push ecx
lea ecx, [ebp - 0xc4]
call fcn.10035220
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x54], 0
je 0x10040d49
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x194], edx
mov eax, dword [ebp - 0x194]
push eax
call fcn.1001b03f
add esp, 4
jmp 0x10040d58
mov dword [ebp - 4], 9
mov dword [ebp - 0x54], 0
lea ecx, [ebp - 0xc4]
call fcn.10001b60
push eax
call fcn.1001ae19
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.1003fa20
mov ecx, dword [ebp - 0x22c]
mov byte [ecx + 0x1365f], al
mov edx, dword [ebp - 0x22c]
movzx eax, byte [edx + 0x1365f]
cmp eax, 1
jne 0x10040dc7
mov dword [ebp - 0x14], 1
mov ecx, dword [ebp - 0x22c]
mov edx, dword [ecx + 0x134ec]
cmp edx, dword [ebp - 0x50]
jl 0x10040df7
cmp dword [ebp - 0x50], 0xffffffff
jne 0x10041104
mov eax, dword [ebp - 0x22c]
mov ecx, dword [eax + 0x134ec]
cmp ecx, dword [ebp - 0x50]
je 0x10041104
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xd0], 0
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x1b0]
call fcn.10001ac0
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.1004a460
mov dword [ebp - 0xc8], eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x1b0]
call fcn.10001b30
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0xcc], eax
cmp dword [ebp - 0xc8], 0
je 0x10041104
cmp dword [ebp - 0xcc], 0
jle 0x10041104
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.10031bc0
add esp, 0x10
mov dword [ebp - 0xd8], eax
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0xc8], 0
je 0x10040ed7
mov edx, dword [ebp - 0xc8]
mov dword [ebp - 0x1b4], edx
mov eax, dword [ebp - 0x1b4]
push eax
call fcn.1001b03f
add esp, 4
jmp 0x10040ee6
mov dword [ebp - 4], 9
mov dword [ebp - 0xc8], 0
cmp dword [ebp - 0xdc], 0
je 0x100410b7
cmp dword [ebp - 0xd8], 0
je 0x100410a8
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.1003f090
mov ecx, dword [ebp - 0x22c]
mov byte [ecx + 0x1365f], al
mov edx, dword [ebp - 0x22c]
movzx eax, byte [edx + 0x1365f]
cmp eax, 1
jne 0x10040f5b
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 0x10041071
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x1b8], edx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xc4]
call fcn.10001b30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.1004a360
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.10001b30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
call fcn.10001b30
mov eax, dword [ebp - 0x1b8]
jmp 0x100411e2
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.1001bb52
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1bc], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xc4]
call fcn.10001b30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.1004a360
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.10001b30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
call fcn.10001b30
mov eax, dword [ebp - 0x1bc]
jmp 0x100411e2
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c0], ecx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xc4]
call fcn.10001b30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.1004a360
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.10001b30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
call fcn.10001b30
mov eax, dword [ebp - 0x1c0]
jmp 0x100411e2
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.1001a52f
mov esp, ebp
pop ebp
ret