Function at 0x10193060
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x238], eax
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x264], ebx
mov dword [ebp - 0x244], edi
mov dword [ebp - 0x254], ecx
test edi, edi
je 0x101930bb
push ecx
mov ecx, esp
push edi
call fcn.10002490
call fcn.101b08f0
add esp, 4
test al, al
jne 0x10193151
mov eax, dword [ebp - 0x238]
add eax, 8
mov dword [ebp - 0x258], eax
push ecx
mov esi, esp
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.10002a60
add esp, 4
add eax, 0x10
mov dword [esi], eax
call fcn.101b08f0
add esp, 4
test al, al
jne 0x10193151
mov eax, dword [ebp - 0x238]
mov ecx, ebx
add eax, 0x14
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x2c4], 0
mov esi, dword [eax]
mov eax, dword [ebx]
call dword [eax + 0x50]
push eax
lea eax, [ebp - 0x2c4]
push eax
push esi
call fcn.100dda60
add esp, 0xc
cmp dword [ebp - 0x2c4], 0
jne 0x10193151
cmp dword [ebp + 0x10], 0
jne 0x1019316f
mov eax, dword [ebx + 0x164]
cmp eax, 0xffffffff
je 0x1019316f
mov ecx, dword [ebx + 0x160]
cmp ecx, eax
jbe 0x10193166
mov dword [ebx + 0xc8], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 0x18
lea eax, [ecx + 1]
mov dword [ebx + 0x160], eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x25c]
call fcn.10002490
cmp dword [ebp + 0x14], 3
mov edi, dword [ebp - 0x25c]
jne 0x10193216
test byte [ebx + 0xe4], 8
jne 0x10193216
cmp dword [ebp + 0x18], 1
je 0x10193216
push str..lnk
push edi
call sub.msvcrt.dll__wcsicmp
add esp, 8
test eax, eax
je 0x101931d7
push str..url
push edi
call sub.msvcrt.dll__wcsicmp
add esp, 8
test eax, eax
je 0x101931d7
push str..pif
push edi
call sub.msvcrt.dll__wcsicmp
add esp, 8
test eax, eax
jne 0x10193216
mov esi, dword [ebp - 0x244]
push esi
call fcn.100606e0
cmp eax, 0xffffffff
je 0x10193216
test al, 6
je 0x10193216
cmp dword [ebp + 0x10], 1
mov dword [ebp - 0x280], 9
jne 0x10193216
mov ecx, dword [ebp - 0x238]
push 1
push 0
push 0
push 0x80
push esi
lea ecx, [ecx + 0x18]
call fcn.10126750
lea ecx, [ebp - 0x27c]
call fcn.1005fec0
push dword [ebp - 0x244]
lea ecx, [ebp - 0x23c]
call fcn.10002490
mov esi, dword [ebp - 0x23c]
mov ecx, 1
mov edx, dword [esi - 0xc]
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edx
or ecx, eax
mov dword [ebp - 0x24c], edx
jge 0x1019326a
push edx
lea ecx, [ebp - 0x23c]
call fcn.10003310
mov esi, dword [ebp - 0x23c]
mov edx, dword [ebp - 0x24c]
lea eax, [edx + 1]
push eax
push esi
call fcn.101e7180
mov eax, dword [ebp - 0x24c]
add esp, 8
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebx + 0xbc]
call fcn.1005e9c0
mov eax, dword [ebp - 0x24c]
cmp eax, dword [ebx + 0xbc]
je 0x1019374b
mov edx, dword [eax + 0x10]
mov ecx, esi
jmp 0x101932c0
mov di, word [ecx]
cmp di, word [edx]
mov edi, dword [ebp - 0x25c]
jne 0x101932ff
cmp word [ecx], 0
je 0x101932fb
mov di, word [ecx + 2]
cmp di, word [edx + 2]
mov word [ebp - 0x25e], di
mov edi, dword [ebp - 0x25c]
jne 0x101932ff
add ecx, 4
add edx, 4
cmp word [ebp - 0x25e], 0
jne 0x101932c0
xor ecx, ecx
jmp 0x10193304
sbb ecx, ecx
or ecx, 1
test ecx, ecx
js 0x1019374b
lea ebx, [eax + 0x14]
push ebx
lea ecx, [ebp - 0x27c]
call fcn.10002790
lea eax, [ebx + 4]
push eax
lea ecx, [ebp - 0x278]
call fcn.10002790
lea eax, [ebx + 8]
push eax
lea ecx, [ebp - 0x274]
call fcn.10002790
mov eax, dword [ebx + 0xc]
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x270], eax
lea eax, [ebx + 0x10]
push eax
call fcn.10002790
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10193369
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x278]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.10002a60
add esp, 4
add eax, 0x10
mov dword [esi], eax
call fcn.101b08f0
add esp, 4
test al, al
jne 0x1019480e
mov eax, dword [ebp - 0x26c]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.10002a60
add esp, 4
add eax, 0x10
mov dword [esi], eax
call fcn.101b08f0
add esp, 4
test al, al
jne 0x1019480e
mov eax, dword [ebp - 0x27c]
add eax, 0xfffffff0
push eax
call fcn.10002a60
add esp, 4
cmp dword [eax + 0xc], 1
lea esi, [eax + 0x10]
mov dword [ebp - 0x25c], esi
jle 0x101933f8
push dword [esi - 0xc]
lea ecx, [ebp - 0x25c]
call fcn.10002c20
mov esi, dword [ebp - 0x25c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push dword [esi - 8]
push esi
call fcn.101e6fd0
xor ecx, ecx
mov dword [esi - 0xc], eax
add esp, 8
mov word [esi + eax*2], cx
mov ecx, dword [ebp - 0x238]
add ecx, 0x10
mov dword [ebp - 0x23c], ecx
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
jne 0x10193437
lea eax, [ebp - 0x27c]
push eax
call fcn.10002790
mov ecx, dword [ebp - 0x238]
add ecx, 4
mov dword [ebp - 0x230], ecx
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
jne 0x10193468
lea eax, [ebp - 0x274]
push eax
call fcn.10002790
mov ecx, dword [ebp - 0x238]
mov eax, dword [ebp - 0x270]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x258]
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
jne 0x10193497
lea eax, [ebp - 0x278]
push eax
call fcn.10002790
mov ecx, dword [ebp - 0x238]
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ecx + 0xc]
call fcn.10002790
mov ecx, dword [ebp - 0x238]
add ecx, 0x124
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
jne 0x101934b7
lea eax, [ebp - 0x25c]
push eax
call fcn.10002790
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x80]
test eax, eax
je 0x10193576
cmp dword [ebp + 0x14], 3
jne 0x10193576
cmp dword [ebx + 0xf0], 0
lea eax, [ebx + 0xf0]
mov dword [ebp - 0x234], eax
jne 0x10193576
push str..lnk
push edi
mov dword [ebp - 0x24c], 0
call sub.msvcrt.dll__wcsicmp
add esp, 8
test eax, eax
jne 0x10193525
mov eax, dword [ebp - 0x238]
mov ecx, ebx
push 1
push 0x10202940
push dword [eax + 0xc]
call fcn.101960b0
mov dword [ebp - 0x24c], eax
mov eax, dword [ebp - 0x230]
mov ebx, dword [ebp - 0x258]
mov eax, dword [eax]
mov ebx, dword [ebx]
mov dword [ebp - 0x230], eax
call fcn.10175b00
push eax
mov eax, dword [ebp - 0x264]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x50]
mov ecx, dword [ebp - 0x234]
push eax
push dword [ebp - 0x24c]
mov eax, dword [ebp - 0x238]
push ebx
push dword [eax]
push dword [ebp - 0x230]
push esi
call fcn.101aaf80
mov ebx, dword [ebp - 0x264]
push dword [ebp + 0x1c]
mov eax, dword [ebx]
lea ecx, [ebp - 0x28c]
push ecx
push dword [ebp + 0x18]
mov ecx, dword [ebp - 0x238]
push dword [ebp + 0x10]
mov dword [ebp - 0x28c], 0
push 1
push ecx
push dword [ebp - 0x244]
mov ecx, ebx
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x284], 0
call dword [eax + 0x60]
mov esi, eax
mov dword [ebp - 0x240], esi
test esi, esi
jne 0x101947aa
mov esi, dword [ebp - 0x28c]
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x288]
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x230], 1
push esi
push eax
call fcn.1018ea00
mov ecx, dword [ebp - 0x288]
add esp, 0x10
cmp dword [eax], ecx
je 0x10193633
push dword [ebp + 0x18]
mov eax, dword [ebx]
mov ecx, ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x238]
push dword [ebp - 0x244]
call dword [eax + 0x70]
mov esi, eax
mov dword [ebp - 0x240], eax
test esi, esi
jne 0x101947aa
mov esi, dword [ebp - 0x28c]
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 8
push eax
push dword [ebp - 0x288]
lea eax, [ebp - 0x24c]
push esi
push eax
call fcn.1018ea00
mov ecx, dword [ebp - 0x288]
add esp, 0x10
cmp dword [eax], ecx
jne 0x10193aba
cmp esi, ecx
je 0x10193680
lea esp, [esp]
cmp dword [esi], 3
je 0x10193ab2
add esi, 4
cmp esi, ecx
jne 0x10193670
mov esi, dword [ebp - 0x240]
push dword [ebp - 0x244]
lea ecx, [ebp - 0x24c]
call fcn.10002490
test byte [ebx + 0xe4], 4
je 0x101936bd
mov eax, dword [ebp - 0x238]
push dword [eax + 0x12c]
call fcn.10191060
add esp, 4
cmp eax, 1
je 0x1019373f
push dword [ebp - 0x244]
call fcn.1007fb50
add esp, 4
test eax, eax
je 0x10193ae8
push 4
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x24c]
call fcn.1000a000
mov ecx, 1
mov dword [ebp - 0x254], ecx
push str..htm
push dword [eax]
call sub.msvcrt.dll__wcsicmp
add esp, 8
test eax, eax
je 0x10193ae8
push 5
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x24c]
call fcn.1000a000
mov ecx, 3
mov dword [ebp - 0x254], ecx
push str..html
push dword [eax]
call sub.msvcrt.dll__wcsicmp
add esp, 8
test eax, eax
je 0x10193ae8
mov byte [ebp - 0x25d], 0
jmp 0x10193aef
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10193763
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [0x1025b434]
mov dword [ebp - 0x23c], 0
test ecx, ecx
je 0x1019336f
mov eax, dword [ecx]
lea edx, [ebp - 0x23c]
mov esi, dword [ebp - 0x244]
push edx
push 1
push esi
push ecx
call dword [eax + 0x18]
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x1019336f
mov dword [ebp - 0x234], 0
lea edx, [ebp - 0x234]
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x25c], 0
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x23c]
lea edx, [ebp - 0x24c]
mov dword [ebp - 0x24c], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
cmp dword [ebp - 0x24c], 2
jne 0x10193893
lea ecx, [ebp - 0x2d4]
call fcn.1008e160
push esi
lea ecx, [ebp - 0x260]
call fcn.10002490
push 0x10202940
lea ecx, [ebp - 0x240]
call fcn.10002490
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x2d4]
call fcn.101a4ec0
lea ecx, [ebp - 0x240]
call fcn.10007e10
lea ecx, [ebp - 0x260]
call fcn.10007e10
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x2d4]
call fcn.101a59b0
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x274]
push eax
lea ecx, [ebp - 0x2d4]
call fcn.101a5a30
lea ecx, [ebp - 0x2d4]
call fcn.1008e270
jmp 0x101938fa
mov eax, dword [ebp - 0x23c]
lea edx, [ebp - 0x268]
push edx
lea edx, [ebp - 0x248]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x23c]
lea edx, [ebp - 0x25c]
push edx
lea edx, [ebp - 0x270]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
push dword [ebp - 0x248]
lea ecx, [ebp - 0x278]
call fcn.10008170
push dword [ebp - 0x268]
lea ecx, [ebp - 0x26c]
call fcn.10008170
push dword [ebp - 0x25c]
lea ecx, [ebp - 0x274]
call fcn.10008170
push dword [ebp - 0x234]
lea ecx, [ebp - 0x27c]
call fcn.10008170
push esi
lea ecx, [ebp - 0x240]
call fcn.10002490
mov eax, dword [ebp - 0x240]
mov edx, 1
mov ecx, dword [eax - 8]
mov esi, dword [eax - 0xc]
sub ecx, esi
sub edx, dword [eax - 4]
or edx, ecx
jge 0x10193943
push esi
lea ecx, [ebp - 0x240]
call fcn.10003310
mov eax, dword [ebp - 0x240]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.101e7180
mov eax, dword [ebp - 0x240]
add esp, 8
xor ecx, ecx
mov dword [eax - 0xc], esi
mov eax, dword [ebp - 0x240]
mov word [eax + esi*2], cx
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebx + 0xbc]
call fcn.1005e9c0
mov esi, dword [ebp - 0x260]
lea eax, [ebx + 0xbc]
cmp esi, dword [eax]
je 0x101939cc
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp - 0x240]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x101939bd
test dx, dx
je 0x101939b9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x101939bd
add eax, 4
add ecx, 4
test dx, dx
jne 0x10193997
xor eax, eax
jmp 0x101939c2
sbb eax, eax
or eax, 1
test eax, eax
jns 0x10193a10
lea eax, [ebx + 0xbc]
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x230], ecx
lea ecx, [ebp - 0x25d]
push ecx
lea ecx, [ebp - 0x230]
push ecx
push 0x1021c108
mov ecx, eax
call fcn.1018dd60
push eax
add eax, 0x10
lea ecx, [ebx + 0xbc]
push eax
push esi
lea eax, [ebp - 0x230]
push eax
call fcn.1018e2e0
mov esi, dword [ebp - 0x230]
lea eax, [ebp - 0x27c]
push eax
lea ecx, [esi + 0x14]
call fcn.10002790
lea eax, [ebp - 0x278]
push eax
lea ecx, [esi + 0x18]
call fcn.10002790
lea eax, [ebp - 0x274]
push eax
lea ecx, [esi + 0x1c]
call fcn.10002790
mov eax, dword [ebp - 0x270]
lea ecx, [esi + 0x24]
mov dword [esi + 0x20], eax
lea eax, [ebp - 0x26c]
push eax
call fcn.10002790
mov edx, dword [ebp - 0x240]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10193a73
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x25c]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x268]
call esi
push dword [ebp - 0x248]
call esi
push dword [ebp - 0x234]
call esi
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x1019336f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x1019336f
cmp esi, ecx
je 0x10193680
push dword [ebp + 0x18]
mov eax, dword [ebx]
mov ecx, ebx
push dword [ebp + 0x10]
push dword [ebp - 0x238]
push dword [ebp - 0x244]
call dword [eax + 0x68]
mov esi, eax
mov dword [ebp - 0x240], esi
test esi, esi
jne 0x101947aa
jmp 0x10193686
mov byte [ebp - 0x25d], 1
mov eax, dword [ebp - 0x254]
test al, 2
je 0x10193b13
and eax, 0xfffffffd
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x254], eax
call fcn.10007e10
mov eax, dword [ebp - 0x254]
test al, 1
je 0x10193b22
lea ecx, [ebp - 0x234]
call fcn.10007e10
cmp byte [ebp - 0x25d], 0
je 0x10193ba4
push 0
lea ecx, [ebp - 0x22c]
call fcn.1005b320
push 0
push 0x10202940
push dword [ebp - 0x244]
lea ecx, [ebp - 0x22c]
push 0x10202940
push 0x10202940
push 0xaf
call fcn.1005ccb0
cmp eax, 3
jl 0x10193b99
push dword [ebp + 0x18]
mov eax, dword [ebx]
mov ecx, ebx
push dword [ebp + 0x10]
push dword [ebp - 0x238]
push dword [ebp - 0x244]
call dword [eax + 0x6c]
mov esi, eax
mov dword [ebp - 0x240], esi
test esi, esi
je 0x10193b99
lea ecx, [ebp - 0x22c]
call fcn.1005b6b0
jmp 0x1019479f
lea ecx, [ebp - 0x22c]
call fcn.1005b6b0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x80]
cmp dword [ebp + 0x14], 3
jne 0x10194318
test eax, eax
je 0x10193f5d
push 0
lea ecx, [ebp - 0x22c]
call fcn.1005b320
mov eax, dword [ebp - 0x258]
lea ecx, [ebp - 0x22c]
push 0
push 0x10202940
push dword [eax]
push 0x10202940
push 0x10202940
push 0xc5
call fcn.1005ccb0
cmp eax, 3
jl 0x10193f52
push dword [ebp - 0x244]
mov ecx, 0x1025ac18
call fcn.100dff10
test eax, eax
jne 0x10193f52
lea ecx, [ebx + 0xf0]
call fcn.10191840
test al, al
je 0x10193f52
push 2
push 0x10202940
lea ecx, [ebp - 0x2c0]
call fcn.10184120
test byte [ebx + 0xf0], 0x10
mov ecx, dword [ebx + 0xf4]
je 0x10193c79
sub ecx, 2
je 0x10193c6d
sub ecx, 2
je 0x10193c61
mov dword [ebp - 0x2a0], 0x10
jmp 0x10193c8a
mov dword [ebp - 0x2a0], 0x1f
jmp 0x10193c8a
mov dword [ebp - 0x2a0], 0xf
jmp 0x10193c8a
xor eax, eax
cmp ecx, 2
setne al
add eax, 0x11
mov dword [ebp - 0x2a0], eax
push dword [ebp - 0x258]
lea ecx, [ebp - 0x2b4]
call fcn.10002790
mov esi, dword [ebp - 0x238]
lea ecx, [ebp - 0x2ac]
lea eax, [esi + 0xc]
push eax
call fcn.10052030
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x294], 0xffffffff
mov dword [ebp - 0x298], 4
cmp ecx, 1
je 0x10193f31
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10193eff
cmp eax, 1
jne 0x10193edc
lea ecx, [ebp - 0x23c]
call fcn.1001b890
lea ecx, [ebp - 0x254]
call fcn.1001b890
cmp dword [ebx + 0xf4], 4
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x23c]
mov ecx, ebx
push eax
lea eax, [ebp - 0x2c0]
jne 0x10193e14
push 1
push eax
push esi
call fcn.10190a90
mov eax, dword [ebx]
lea ecx, [ebp - 0x230]
push ecx
mov ecx, ebx
call dword [eax + 0x1c]
lea ebx, [esi + 0x18]
mov esi, dword [ebp - 0x264]
mov ecx, esi
push dword [eax]
push 1
call fcn.101a2170
push eax
push dword [ebp - 0x298]
mov ecx, ebx
push dword [esi + 0xec]
push dword [ebp - 0x254]
push dword [ebp - 0x23c]
call fcn.10126970
lea ecx, [ebp - 0x230]
call fcn.10007e10
mov esi, dword [ebp - 0x250]
mov ecx, 0x1025b450
push 0
push 0
mov esi, dword [esi]
call fcn.10009be0
push eax
push 0
push esi
mov ecx, ebx
call fcn.10123f40
mov eax, dword [ebp - 0x250]
mov ecx, 0x1025b450
push 0
mov esi, dword [eax]
call fcn.10009be0
push eax
push esi
mov ecx, ebx
call fcn.10124e90
mov ecx, ebx
call fcn.10124190
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
call esi
mov ebx, dword [ebp - 0x250]
push 0
push dword [ebx]
push dword [ebp - 0x2b4]
call fcn.100d9aa0
add esp, 0xc
test eax, eax
jne 0x10193dff
push 0x64
call esi
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10193dff
push eax
push dword [ebx]
push dword [ebp - 0x2b4]
call fcn.100d9aa0
add esp, 0xc
push dword [ebx]
call fcn.100d9640
mov ebx, dword [ebp - 0x264]
add esp, 4
jmp 0x10193ec6
push 2
push eax
push esi
call fcn.10190a90
mov eax, dword [ebx]
lea ecx, [ebp - 0x230]
push ecx
mov ecx, ebx
call dword [eax + 0x1c]
add esi, 0x18
mov ecx, ebx
mov dword [ebp - 0x234], esi
push dword [eax]
push 2
call fcn.101a2170
push eax
push dword [ebp - 0x298]
mov ecx, esi
push dword [ebx + 0xec]
push dword [ebp - 0x254]
push dword [ebp - 0x23c]
call fcn.10126970
lea ecx, [ebp - 0x230]
call fcn.10007e10
cmp dword [ebx + 0x14c], 2
jne 0x10193ea1
call fcn.100ddff0
test eax, eax
je 0x10193ea1
mov esi, dword [ebp - 0x250]
push dword [esi]
call fcn.10191860
add esp, 4
test eax, eax
je 0x10193ea1
mov ecx, dword [ebp - 0x234]
push 1
push dword [esi]
call fcn.101271d0
jmp 0x10193ec6
mov eax, dword [ebp - 0x250]
mov ecx, 0x1025b450
push 0
push 0
mov esi, dword [eax]
call fcn.10009be0
mov ecx, dword [ebp - 0x234]
push eax
push 1
push esi
call fcn.10123f40
lea ecx, [ebp - 0x254]
call fcn.10007e10
lea ecx, [ebp - 0x23c]
call fcn.10007e10
mov eax, dword [ebp - 0x250]
push 0x10204674
push 0
push dword [eax]
push dword [ebx + 0xc4]
call fcn.10026170
mov ecx, eax
call fcn.1002b1e0
jmp 0x10193f31
cmp dword [ebx + 0xf4], 4
lea eax, [ebp - 0x2c0]
push 0x10202940
push 0x10202940
push 0x10202940
push 0
push 1
push ecx
mov ecx, ebx
jne 0x10193f28
push 1
jmp 0x10193f2a
push 2
push eax
push esi
call fcn.10190070
mov esi, dword [ebp - 0x2a0]
lea ecx, [ebp - 0x2c0]
call fcn.100e54a0
lea ecx, [ebp - 0x22c]
call fcn.1005b6b0
jmp 0x1019479f
lea ecx, [ebp - 0x22c]
call fcn.1005b6b0
test byte [ebx + 0xe4], 8
je 0x10194318
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
push dword [ebp - 0x244]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x230], eax
cmp eax, 0xffffffff
jne 0x10194311
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1019430b
push 0
lea ecx, [ebp - 0x22c]
call fcn.1005b320
push 0
push 0x10202940
push dword [ebp - 0x244]
lea ecx, [ebp - 0x22c]
push 0x10202940
push 0x10202940
push 0xb4
call fcn.1005ccb0
cmp eax, 3
jl 0x101942fe
mov eax, dword [ebp - 0x23c]
mov esi, dword [ebp - 0x244]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x1019400a
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ecx, dword [ebp - 0x23c]
push eax
call fcn.10008170
push 2
push 0x10202940
lea ecx, [ebp - 0x2c0]
call fcn.10184120
mov ecx, dword [0x1025b434]
mov dword [ebp - 0x2a0], 0xa
mov dword [ebp - 0x294], 0xffffffff
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x268], 0
test ecx, ecx
je 0x101940a1
mov eax, dword [ecx]
lea edx, [ebp - 0x254]
push edx
push 1
push esi
push ecx
call dword [eax + 0x28]
test eax, eax
js 0x10194075
push dword [ebp - 0x254]
lea ecx, [ebp - 0x2c0]
call fcn.100e5a30
jmp 0x101940b2
mov eax, dword [0x1025b434]
lea edx, [ebp - 0x268]
push edx
push 1
push esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
test eax, eax
js 0x101940b2
push dword [ebp - 0x268]
lea ecx, [ebp - 0x2c0]
call fcn.100e5a30
jmp 0x101940b2
push dword [ebp - 0x258]
lea ecx, [ebp - 0x2b4]
call fcn.10002790
push 2
mov ecx, ebx
call fcn.10196dd0
mov dword [ebp - 0x298], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10194215
cmp eax, 1
jne 0x101941ef
lea ecx, [ebp - 0x248]
call fcn.1001b890
lea ecx, [ebp - 0x234]
call fcn.1001b890
lea eax, [ebp - 0x234]
mov ecx, ebx
push eax
lea eax, [ebp - 0x248]
push eax
push 2
lea eax, [ebp - 0x2c0]
push eax
push dword [ebp - 0x238]
call fcn.10190a90
mov eax, dword [ebx]
lea ecx, [ebp - 0x230]
push ecx
mov ecx, ebx
call dword [eax + 0x1c]
mov ecx, dword [ebp - 0x238]
add ecx, 0x18
mov dword [ebp - 0x258], ecx
mov ecx, ebx
push dword [eax]
push 2
call fcn.101a2170
mov ecx, dword [ebp - 0x258]
push eax
push dword [ebp - 0x298]
push dword [ebx + 0xec]
push dword [ebp - 0x234]
push dword [ebp - 0x248]
call fcn.10126970
lea ecx, [ebp - 0x230]
call fcn.10007e10
mov ecx, dword [ebp - 0x258]
push 1
push 0
push 0
push 0x80
push esi
call fcn.10126750
cmp dword [ebx + 0x14c], 2
jne 0x101941b4
call fcn.100ddff0
test eax, eax
je 0x101941b4
mov esi, dword [ebp - 0x250]
push dword [esi]
call fcn.10191860
add esp, 4
test eax, eax
je 0x101941b4
mov ecx, dword [ebp - 0x258]
push 1
push dword [esi]
call fcn.101271d0
jmp 0x101941d9
mov eax, dword [ebp - 0x250]
mov ecx, 0x1025b450
push 0
push 0
mov esi, dword [eax]
call fcn.10009be0
mov ecx, dword [ebp - 0x258]
push eax
push 1
push esi
call fcn.10123f40
lea ecx, [ebp - 0x234]
call fcn.10007e10
lea ecx, [ebp - 0x248]
call fcn.10007e10
mov eax, dword [ebp - 0x250]
push 0x10204674
push 0
push dword [eax]
push dword [ebx + 0xc4]
call fcn.10026170
mov ecx, eax
call fcn.1002b1e0
jmp 0x101942be
push 0x2785
lea ecx, [ebp - 0x248]
call fcn.10002490
push eax
push dword [ebp - 0x23c]
lea ecx, [ebp - 0x280]
push 0x27e5
call fcn.10002490
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.10007e90
add esp, 0xc
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.10007e90
add esp, 0xc
lea ecx, [ebp - 0x230]
call fcn.10007e10
lea ecx, [ebp - 0x280]
call fcn.10007e10
lea ecx, [ebp - 0x248]
call fcn.10007e10
push 0x10202940
push 0x10202940
push dword [ebp - 0x234]
mov ecx, ebx
call fcn.101973f0
movzx eax, al
mov ecx, ebx
push eax
push 1
push dword [ebp + 0x18]
lea eax, [ebp - 0x2c0]
push 2
push eax
push dword [ebp - 0x238]
call fcn.10190070
lea ecx, [ebp - 0x234]
call fcn.10007e10
mov eax, dword [ebp - 0x268]
test eax, eax
je 0x101942ce
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x254]
test eax, eax
je 0x101942de
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x2c0]
call fcn.100e54a0
lea ecx, [ebp - 0x22c]
call fcn.1005b6b0
mov esi, 0xa
jmp 0x1019479f
lea ecx, [ebp - 0x22c]
call fcn.1005b6b0
jmp 0x10194318
mov eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x101946c3
mov eax, dword [ebp - 0x250]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0x104
jl 0x101944ed
mov esi, dword [ebp - 0x23c]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x10194357
push dword [ebp - 0x244]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
mov ecx, esi
call fcn.10008170
push 2
push 0x10202940
lea ecx, [ebp - 0x2c0]
call fcn.10184120
push dword [ebp - 0x250]
lea ecx, [ebp - 0x2b4]
mov dword [ebp - 0x2a0], 0x20
call fcn.10002790
push 2
mov ecx, ebx
mov dword [ebp - 0x294], 0xffffffff
call fcn.10196dd0
mov dword [ebp - 0x298], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x101944ac
cmp eax, 1
jne 0x10194476
lea ecx, [ebp - 0x248]
call fcn.1001b890
lea ecx, [ebp - 0x234]
call fcn.1001b890
mov esi, dword [ebp - 0x238]
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x248]
mov ecx, ebx
push eax
push 2
lea eax, [ebp - 0x2c0]
push eax
push esi
call fcn.10190a90
mov eax, dword [ebx]
lea ecx, [ebp - 0x230]
push ecx
mov ecx, ebx
call dword [eax + 0x1c]
lea ebx, [esi + 0x18]
mov esi, dword [ebp - 0x264]
mov ecx, esi
push dword [eax]
push 2
call fcn.101a2170
push eax
push dword [ebp - 0x298]
mov ecx, ebx
push dword [esi + 0xec]
push dword [ebp - 0x234]
push dword [ebp - 0x248]
call fcn.10126970
lea ecx, [ebp - 0x230]
call fcn.10007e10
mov eax, dword [ebp - 0x250]
mov ecx, 0x1025b450
push 0
push 0
mov esi, dword [eax]
call fcn.10009be0
push eax
push 1
push esi
mov ecx, ebx
call fcn.10123f40
lea ecx, [ebp - 0x234]
call fcn.10007e10
lea ecx, [ebp - 0x248]
call fcn.10007e10
mov ebx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x250]
push 0x102123c4
push 0
push dword [eax]
push dword [ebx + 0xc4]
call fcn.10026170
mov ecx, eax
call fcn.1002b1e0
lea ecx, [ebp - 0x2c0]
call fcn.100e54a0
mov esi, 0x20
jmp 0x1019479f
push 0x10202940
push 0x10202940
push 0x10202940
push 0
push 0
push dword [ebp + 0x18]
lea eax, [ebp - 0x2c0]
mov ecx, ebx
push 2
push eax
push dword [ebp - 0x238]
call fcn.10190070
lea ecx, [ebp - 0x2c0]
call fcn.100e54a0
mov esi, 0x20
jmp 0x1019479f
cmp dword [ebp - 0x280], 9
jne 0x101946c3
push 0
lea ecx, [ebp - 0x22c]
call fcn.1005b320
push 0
push 0x10202940
push dword [ebp - 0x244]
lea ecx, [ebp - 0x22c]
push 0x10202940
push 0x10202940
push 0xb4
call fcn.1005ccb0
cmp eax, 3
jl 0x101946b8
mov esi, dword [ebp - 0x23c]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x10194559
push dword [ebp - 0x244]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
mov ecx, esi
call fcn.10008170
push 2
push 0x10202940
lea ecx, [ebp - 0x2c0]
call fcn.10184120
push dword [ebp - 0x250]
lea ecx, [ebp - 0x2b4]
mov dword [ebp - 0x2a0], 9
call fcn.10002790
push 2
mov ecx, ebx
mov dword [ebp - 0x294], 0xffffffff
call fcn.10196dd0
mov dword [ebp - 0x298], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1019466c
cmp eax, 1
jne 0x10194649
lea ecx, [ebp - 0x248]
call fcn.1001b890
lea ecx, [ebp - 0x234]
call fcn.1001b890
mov esi, dword [ebp - 0x238]
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x248]
mov ecx, ebx
push eax
push 1
lea eax, [ebp - 0x2c0]
push eax
push esi
call fcn.10190a90
mov eax, dword [ebx]
lea ecx, [ebp - 0x230]
push ecx
mov ecx, ebx
call dword [eax + 0x1c]
mov ecx, ebx
push dword [eax]
push 1
call fcn.101a2170
push eax
push dword [ebp - 0x298]
lea ecx, [esi + 0x18]
push dword [ebx + 0xec]
push dword [ebp - 0x234]
push dword [ebp - 0x248]
call fcn.10126970
lea ecx, [ebp - 0x230]
call fcn.10007e10
lea ecx, [ebp - 0x234]
call fcn.10007e10
lea ecx, [ebp - 0x248]
call fcn.10007e10
mov eax, dword [ebp - 0x250]
push 0x102123c4
push 0
push dword [eax]
push dword [ebx + 0xc4]
call fcn.10026170
mov ecx, eax
call fcn.1002b1e0
jmp 0x10194698
push 0x10202940
push 0x10202940
push 0x10202940
push 0
push 0
push dword [ebp + 0x18]
lea eax, [ebp - 0x2c0]
mov ecx, ebx
push 1
push eax
push dword [ebp - 0x238]
call fcn.10190070
lea ecx, [ebp - 0x2c0]
call fcn.100e54a0
lea ecx, [ebp - 0x22c]
call fcn.1005b6b0
mov esi, 9
jmp 0x1019479f
lea ecx, [ebp - 0x22c]
call fcn.1005b6b0
cmp dword [ebp + 0x10], 0
jne 0x1019479f
push dword [ebp - 0x244]
lea ecx, [ebp - 0x258]
call fcn.10002490
lea eax, [ebp - 0x258]
add ebx, 0x158
push eax
lea eax, [ebp - 0x230]
mov ecx, ebx
push eax
call fcn.1005e9c0
mov esi, dword [ebp - 0x230]
cmp esi, dword [ebx]
je 0x1019473f
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp - 0x258]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10194736
test dx, dx
je 0x10194732
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10194736
add eax, 4
add ecx, 4
test dx, dx
jne 0x10194710
xor eax, eax
jmp 0x1019473b
sbb eax, eax
or eax, 1
test eax, eax
jns 0x1019477f
lea eax, [ebp - 0x258]
mov ecx, ebx
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x25d]
push eax
lea eax, [ebp - 0x230]
push eax
push 0x1021c108
call fcn.1018dd60
push eax
add eax, 0x10
mov ecx, ebx
push eax
push esi
lea eax, [ebp - 0x230]
push eax
call fcn.1018e2e0
mov esi, dword [ebp - 0x230]
lea eax, [ebp - 0x27c]
push eax
lea ecx, [esi + 0x14]
call fcn.1018fe80
lea ecx, [ebp - 0x258]
call fcn.10007e10
mov esi, dword [ebp - 0x240]
lea ecx, [ebp - 0x24c]
call fcn.10007e10
mov edx, dword [ebp - 0x28c]
test edx, edx
je 0x10194801
mov ecx, dword [ebp - 0x284]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x101947d9
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10194848
push ecx
push edx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 8
mov dword [ebp - 0x28c], 0
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x284], 0
lea ecx, [ebp - 0x25c]
call fcn.10007e10
jmp 0x10194810
xor esi, esi
lea ecx, [ebp - 0x27c]
call fcn.10060600
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10194833
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 0x18
call fcn.101e6c40
int3