Function at 0x1001fba0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1004ca5b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1624
call fcn.10046480
mov eax, dword [0x10063068]
xor eax, esp
mov dword [esp + 0x1620], eax
push ebx
push esi
push edi
mov eax, dword [0x10063068]
xor eax, esp
push eax
lea eax, [esp + 0x1638]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, 1
mov dword [esp + 0x30], esi
test byte [0x100663d0], al
jne 0x1001fc27
or dword [0x100663d0], eax
mov dword [esp + 0x1640], 0
call fcn.1001ca20
push 0x1004e4a0
call fcn.10045bf9
add esp, 4
mov dword [esp + 0x1640], 0xffffffff
mov eax, dword [esi + 0x100]
push 0x10066338
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ebx, [esp + 0x18]
lea eax, [esp + 0x1c]
mov ecx, 0x10066328
xor edi, edi
call fcn.1001d240
mov eax, dword [esp + 0x1c]
cmp eax, dword [0x1006632c]
je 0x1001fc5f
mov edi, dword [eax + 0x10]
push 0x10066338
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x1001fc77
add edi, 0x68
mov dword [esp + 0x20], edi
jmp 0x1001fc83
mov dword [esp + 0x20], 0
mov edi, dword [esp + 0x20]
mov dword [esp + 0x3c], edi
test edi, edi
je 0x1001fc93
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
push edi
call edx
push 0
push 0x10064a40
push 0x10063c9c
push 0
push edi
mov dword [esp + 0x1654], 1
call sub.MSVCR100.dll___RTDynamicCast
add esp, 0x14
mov dword [esp + 0x18], eax
test eax, eax
jne 0x1001fd01
mov esi, dword [esi + 0x10]
test esi, esi
je 0x1001fcdc
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [esi]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [eax + 0x14]
push ecx
push esi
call edx
mov esi, eax
jmp 0x1001fce1
mov esi, 0x8000ffff
mov dword [esp + 0x1640], 0xffffffff
test edi, edi
je 0x100203a4
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
jmp 0x100203a4
cmp dword [esi + 0x7c], 8
mov edi, dword [esi + 0x78]
lea ebx, [esi + 0x68]
jb 0x1001fd11
mov eax, dword [ebx]
jmp 0x1001fd13
mov eax, ebx
lea ecx, [esi + 0x128]
push eax
mov eax, dword [ecx + 0x10]
call fcn.1000cc30
test eax, eax
jne 0x1001fe6a
lea ecx, [esi + 0x84]
lea edi, [eax + 9]
mov eax, dword [ecx + 0x10]
push 0x100560c4
call fcn.1000cc30
test eax, eax
jne 0x1001fe6a
mov byte [esp + 0x17], 1
cmp dword [ebx + 0x14], 8
mov edi, dword [ebx + 0x10]
jb 0x1001fd58
mov ebx, dword [ebx]
mov eax, dword [esi + 0x138]
lea ecx, [esi + 0x128]
push ebx
call fcn.1000cc30
test eax, eax
jne 0x1001fd77
mov ebx, dword [esp + 0x18]
call fcn.10018fe0
cmp dword [esi + 0x24], 0
je 0x10020365
xor ecx, ecx
cmp ecx, 0x800c0008
je 0x1001fe24
cmp ecx, 0x800c0007
je 0x1001fe24
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x1388
lea edx, [esp + 0x2ac]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov edx, dword [esp + 0x10]
mov ecx, eax
mov dword [esp + 0x1c], ecx
cmp ecx, 0x8000000a
jne 0x1001fdd2
test edx, edx
je 0x10020346
mov eax, dword [esi + 0x108]
test eax, eax
je 0x1001fe1b
mov ecx, dword [eax]
lea edi, [esp + 0x24]
push edi
push edx
lea edx, [esp + 0x2ac]
push edx
push eax
mov eax, dword [ecx + 0x10]
call eax
mov eax, dword [esi + 0x108]
mov edi, dword [eax]
lea ebx, [esp + 0x34]
push ebx
push 2
xor edx, edx
xor ecx, ecx
push edx
push ecx
mov ecx, dword [edi + 0x14]
push eax
call ecx
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x10c], edx
cmp ecx, 1
jne 0x1001fd83
test byte [ebp + 0xc], 4
je 0x10020346
mov eax, dword [esi + 0x10c]
cmp eax, dword [ebp + 0x10]
jne 0x10020346
lea ecx, [esp + 0x1c]
call dword [0x1004f704]
cmp byte [esp + 0x17], 0
mov byte [esp + 0x1640], 2
je 0x1001fec4
push 0x100560f8
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
jmp 0x1001feea
cmp byte [esi + 0xc6], 0
mov byte [esp + 0x17], 0
jne 0x1001fd4d
mov esi, dword [esi + 0x10]
test esi, esi
je 0x1001fe9b
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [esi]
push eax
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [edx + 0x14]
push eax
push esi
call ecx
mov esi, eax
jmp 0x1001fea0
mov esi, 0x8000ffff
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1640], 0xffffffff
test eax, eax
je 0x100203a4
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x100203a4
cmp byte [esi + 0xc6], 0
je 0x1001feea
cmp dword [esi + 0x98], 8
lea eax, [esi + 0x84]
jb 0x1001fede
mov eax, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call fcn.10020e70
cmp dword [esi + 0x13c], 8
lea eax, [esi + 0x128]
jb 0x1001fefb
mov eax, dword [eax]
mov ecx, dword [esp + 0x1c]
push 0
lea edx, [esp + 0xa0]
push edx
mov edx, dword [esi + 0x10c]
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_CreateUrlCacheEntryW]
test eax, eax
je 0x1001ffd8
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 3
push 2
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.SHLWAPI.dll_SHCreateStreamOnFileEx]
test eax, eax
js 0x1001ffd8
mov eax, dword [esi + 0x108]
test eax, eax
je 0x1001ffd8
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
lea ecx, [esp + 0x24]
push ecx
xor ebx, ebx
push ebx
push ebx
xor edi, edi
push edi
push eax
call edx
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
xor eax, eax
push eax
push eax
mov dword [esp + 0x40], eax
mov eax, dword [edx + 0x18]
push ecx
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
push ebx
push ebx
push edi
push eax
mov eax, dword [ecx + 0x14]
call eax
mov edx, dword [esi + 0x10c]
mov eax, dword [esi + 0x108]
mov edi, dword [eax]
lea ebx, [esp + 0x5c]
push ebx
xor ecx, ecx
lea ebx, [esp + 0x58]
push ebx
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [edi + 0x1c]
push ecx
push eax
call edx
mov edi, eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
test edi, edi
js 0x1001ffd8
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
lea ecx, [esp + 0x9c]
push ecx
push 0xe
push esi
call edx
cmp byte [esp + 0x17], 0
je 0x1002015f
lea eax, [esp + 0x40]
push eax
call fcn.10024370
mov eax, dword [esp + 0x18]
cmp byte [eax + 0x4ada], 0
je 0x100200dc
mov edi, dword [eax + 0x4b24]
lea edx, [eax + 0x4b10]
mov dword [esp + 0x18], edx
cmp edi, 8
jb 0x10020017
mov eax, dword [edx]
jmp 0x10020019
mov eax, edx
lea ebx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10020020
sub eax, ebx
sar eax, 1
mov ebx, eax
cmp edi, 8
jb 0x1002003a
mov eax, dword [edx]
jmp 0x1002003c
mov eax, edx
push 0
push 0
push 0
push 0
push ebx
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], 0
mov byte [esp + 0x64], 0
mov ecx, edi
lea eax, [esp + 0x64]
mov byte [esp + 0x1640], 4
call fcn.10021590
cmp dword [esp + 0x78], 0x10
mov ecx, dword [esp + 0x64]
jae 0x10020089
lea ecx, [esp + 0x64]
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x14], 8
jb 0x10020095
mov eax, dword [eax]
push 0
push 0
push edi
push ecx
push ebx
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub esp, 0x1c
lea eax, [esp + 0x80]
mov ecx, esp
mov dword [esp + 0x34], esp
call fcn.10021560
mov ecx, dword [esi + 0x108]
call fcn.100246e0
lea esi, [esp + 0x64]
mov byte [esp + 0x1640], 3
call fcn.10009010
mov esi, dword [esp + 0x30]
mov dword [esp + 0x10], 0
lea ecx, [esp + 0x10]
push ecx
lea edx, [esi + 0xc]
mov byte [esp + 0x1644], 5
push edx
mov byte [esp + 0x20], 0
call fcn.1001e0e0
test eax, eax
jne 0x10020120
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
push eax
mov eax, dword [ecx + 0x60]
call eax
cmp dword [esp + 0x24], 0xb
sete cl
mov byte [esp + 0x18], cl
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 0x108]
push edx
call fcn.10024c00
mov byte [esp + 0x1640], 3
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10020148
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x1644], 2
call fcn.10024520
jmp 0x10020304
cmp byte [esi + 0xc6], 0
je 0x10020304
cmp dword [esi + 0xf8], 8
mov ecx, dword [esi + 0xf4]
lea eax, [esi + 0xe4]
mov dword [esp + 0x10], ecx
jb 0x10020187
mov eax, dword [eax]
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
mov edx, ecx
push edx
push eax
push 0
push 0
call ebx
mov edi, eax
mov dword [esp + 0x94], 0xf
mov dword [esp + 0x90], 0
mov byte [esp + 0x80], 0
mov ecx, edi
lea eax, [esp + 0x80]
mov byte [esp + 0x1640], 6
call fcn.10021590
cmp dword [esp + 0x94], 0x10
mov ecx, dword [esp + 0x80]
jae 0x100201ed
lea ecx, [esp + 0x80]
cmp dword [esi + 0xf8], 8
lea eax, [esi + 0xe4]
jb 0x100201fe
mov eax, dword [eax]
push 0
push 0
push edi
push ecx
mov ecx, dword [esp + 0x20]
push ecx
push eax
push 0
push 0
call ebx
cmp dword [esi + 0xdc], 8
mov edx, dword [esi + 0xd8]
lea edi, [esi + 0xc8]
mov dword [esp + 0x10], edx
jb 0x1002022d
mov eax, dword [edi]
jmp 0x1002022f
mov eax, edi
push 0
push 0
push 0
push 0
mov ecx, edx
push ecx
push eax
push 0
push 0
call ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], 0
mov byte [esp + 0x64], 0
mov ecx, eax
lea eax, [esp + 0x64]
mov byte [esp + 0x1640], 7
call fcn.10021590
cmp dword [esp + 0x78], 0x10
mov eax, dword [esp + 0x64]
jae 0x1002027c
lea eax, [esp + 0x64]
cmp dword [edi + 0x14], 8
jb 0x10020284
mov edi, dword [edi]
mov edx, dword [esp + 0x24]
push 0
push 0
push edx
push eax
mov eax, dword [esp + 0x20]
push eax
push edi
push 0
push 0
call ebx
lea ecx, [esp + 0x40]
push ecx
call fcn.10024370
mov byte [esp + 0x1640], 8
mov esi, dword [esi + 0x108]
test esi, esi
je 0x100202c9
lea edx, [esp + 0x80]
push edx
lea ecx, [esp + 0x68]
mov edx, esi
call fcn.100250b0
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x1644], 7
call fcn.10024520
lea esi, [esp + 0x64]
mov byte [esp + 0x1640], 6
call fcn.10009010
lea esi, [esp + 0x80]
mov byte [esp + 0x1640], 2
call fcn.10009010
mov esi, dword [esp + 0x30]
mov eax, dword [esi + 0x108]
test eax, eax
je 0x1002033c
mov edi, dword [eax]
lea ebx, [esp + 0x34]
push ebx
push 2
xor edx, edx
xor ecx, ecx
push edx
push ecx
mov ecx, dword [edi + 0x14]
push eax
call ecx
mov eax, dword [esp + 0x34]
push eax
mov dword [esi + 0x10c], eax
mov esi, dword [esi + 0x10]
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x14]
push 8
push esi
call eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1640], 0xffffffff
test eax, eax
je 0x10020361
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
jmp 0x100203a6
mov esi, dword [esi + 0x10]
test esi, esi
je 0x10020384
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [esi]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [eax + 0x14]
push ecx
push esi
call edx
mov esi, eax
jmp 0x10020389
mov esi, 0x8000ffff
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1640], 0xffffffff
test eax, eax
je 0x100203a4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
mov ecx, dword [esp + 0x1638]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1620]
xor ecx, esp
call fcn.10045a28
mov esp, ebp
pop ebp
ret 0x10