Function at 0x100036a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10057f50
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x1006dd60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x18]
call fcn.1000fd00
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
push ecx
call fcn.10045830
add esp, 4
lea ecx, [ebp - 0x14]
call fcn.10005b60
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.10019520
push eax
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [eax + 0xfc]
call edx
test eax, eax
jge 0x1000373b
mov dword [ebp - 0x40], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.10019290
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.1000fd80
mov eax, dword [ebp - 0x40]
jmp 0x10003d1b
lea ecx, [ebp - 0x14]
call fcn.1000d230
push eax
lea ecx, [ebp - 0x1c]
call fcn.10005bb0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.1000b730
movzx eax, al
test eax, eax
je 0x10003795
mov dword [ebp - 0x44], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.10003d30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.10019290
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.1000fd80
mov eax, dword [ebp - 0x44]
jmp 0x10003d1b
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x1c]
call fcn.1000d230
mov dword [ebp - 0x70], eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x70]
push edx
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
call edx
mov dword [ebp - 0x20], 0
jmp 0x100037cb
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x10]
jae 0x10003cea
lea ecx, [ebp - 0x24]
call fcn.10005b60
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.1000d230
mov dword [ebp - 0x74], eax
lea ecx, [ebp - 0x24]
call fcn.10019520
push eax
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x74]
push eax
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
call eax
test eax, eax
jge 0x1000381b
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.10019290
jmp 0x100037c2
lea ecx, [ebp - 0x24]
call fcn.1000d230
push eax
lea ecx, [ebp - 0x34]
call fcn.10005bf0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x34]
call fcn.1000b730
movzx ecx, al
test ecx, ecx
je 0x1000385c
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34]
call fcn.10003d30
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.10019290
jmp 0x100037c2
lea ecx, [ebp - 0x38]
call fcn.1000b7b0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x34]
call fcn.1000d230
mov dword [ebp - 0x78], eax
lea ecx, [ebp - 0x38]
call fcn.10019520
push eax
mov edx, dword [ebp - 0x78]
push edx
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
call edx
test eax, eax
jge 0x100038b7
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x38]
call fcn.1000f3a0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34]
call fcn.10003d30
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.10019290
jmp 0x100037c2
lea ecx, [ebp - 0x30]
call fcn.10005b60
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x30]
call fcn.10019520
push eax
push 1
push 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jge 0x10003959
call fcn.1004dc20
mov dword [ebp - 0x7c], eax
push str.Failed_to_call_CreateStreamOnHGlobal_
mov eax, dword [ebp - 0x7c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x7c]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x48], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x30]
call fcn.10019290
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x38]
call fcn.1000f3a0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34]
call fcn.10003d30
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.10019290
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.10003d30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.10019290
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.1000fd80
mov eax, dword [ebp - 0x48]
jmp 0x10003d1b
lea ecx, [ebp - 0x34]
call fcn.1000d230
mov dword [ebp - 0x80], eax
lea ecx, [ebp - 0x30]
call fcn.1000d230
push eax
mov ecx, dword [ebp - 0x80]
push ecx
mov edx, dword [ebp - 0x80]
mov eax, dword [edx]
mov ecx, dword [eax + 0x3c]
call ecx
test eax, eax
jge 0x100039b4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x30]
call fcn.10019290
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x38]
call fcn.1000f3a0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34]
call fcn.10003d30
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.10019290
jmp 0x100037c2
lea ecx, [ebp - 0x18]
call fcn.1000d230
push eax
call fcn.10046c20
add esp, 4
lea ecx, [ebp - 0x38]
call fcn.1000d230
push eax
lea ecx, [ebp - 0x4c]
call fcn.1000fd00
mov dword [ebp - 0x84], eax
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x88], edx
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x88]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.10005110
add esp, 0xc
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x4c]
call fcn.1000fd80
lea eax, [ebp - 0x28]
push eax
call fcn.10046fb0
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.1000d230
push eax
lea ecx, [ebp - 0x30]
call fcn.1000d230
push eax
call fcn.100031d0
add esp, 8
test eax, eax
jne 0x10003ae3
call fcn.1004dc20
mov dword [ebp - 0x8c], eax
lea ecx, [ebp - 0x28]
call fcn.1000d230
push eax
push str.Failed_to_save_file:__1
lea ecx, [ebp - 0x50]
push ecx
call fcn.100460d0
add esp, 0xc
mov dword [ebp - 0x90], eax
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0x94], edx
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x94]
call fcn.1000d230
push eax
mov eax, dword [ebp - 0x8c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x8c]
mov eax, dword [edx]
call eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x50]
call fcn.1000fd80
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
call fcn.1000fd80
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x30]
call fcn.10019290
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x38]
call fcn.1000f3a0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34]
call fcn.10003d30
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.10019290
jmp 0x100037c2
lea ecx, [ebp - 0x34]
call fcn.1000d230
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.100023c0
add esp, 8
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x28]
call fcn.1000d230
push eax
lea edx, [ebp - 0x58]
push edx
call fcn.100466f0
add esp, 8
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x9c], eax
mov byte [ebp - 4], 0xc
push str..lnk
mov ecx, dword [ebp - 0x9c]
call fcn.10004c00
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x51], al
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x58]
call fcn.1000fd80
movzx ecx, byte [ebp - 0x51]
test ecx, ecx
je 0x10003c40
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10002c30
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.1000d230
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10003c40
lea ecx, [ebp - 0x28]
call fcn.1000d230
push eax
lea ecx, [ebp - 0x5c]
push ecx
call fcn.10046660
add esp, 8
mov dword [ebp - 0xa0], eax
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0xa4], edx
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x28]
call fcn.1000d230
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.100468b0
add esp, 8
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0xac], ecx
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0xa4]
push edx
mov eax, dword [ebp - 0xac]
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.10005110
add esp, 0xc
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x60]
call fcn.1000fd80
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x5c]
call fcn.1000fd80
push 0
lea ecx, [ebp - 0x3c]
call fcn.1000d230
push eax
lea ecx, [ebp - 0x2c]
call fcn.1000d230
push eax
call fcn.10003580
add esp, 0xc
test eax, eax
je 0x10003c34
lea edx, [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x28]
call fcn.1000f560
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x3c]
call fcn.1000fd80
cmp dword [ebp + 0x14], 0
je 0x10003c91
lea ecx, [ebp - 0x28]
call fcn.1000d230
push eax
lea ecx, [ebp - 0x2c]
call fcn.1000d230
push eax
lea ecx, [ebp - 0x68]
call fcn.10001c20
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xb4], eax
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0xb4]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.10005660
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x68]
call fcn.100117f0
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.10005460
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2c]
call fcn.1000fd80
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
call fcn.1000fd80
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x30]
call fcn.10019290
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x38]
call fcn.1000f3a0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34]
call fcn.10003d30
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.10019290
jmp 0x100037c2
mov dword [ebp - 0x6c], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.10003d30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.10019290
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.1000fd80
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret