Function at 0x4f3e80
Capabilities:
Check if file exists
Parse url

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53a026
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x59a0a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xe4], eax
mov dword [ebp - 4], 0
mov eax, 0x66666667
mov ecx, dword [esi + 0x9b4]
xor ebx, ebx
sub ecx, dword [esi + 0x9b0]
xor edi, edi
imul ecx
mov dword [ebp - 0xb8], ebx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4f3f3f
nop dword [eax]
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [esi + 0x9b0]
test eax, eax
setne cl
test ecx, ecx
je 0x4f4c0f
push eax
push dword [edx + ebx]
call fcn.004a689d
add esp, 8
test eax, eax
je 0x4f3f83
mov ecx, dword [esi + 0x9b4]
mov eax, 0x66666667
sub ecx, dword [esi + 0x9b0]
inc edi
imul ecx
add ebx, 0x14
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x4f3ef0
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4f4c1d
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4f4c19
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4f4c1d
mov eax, dword [esi + 0x9b0]
lea ecx, [edi + edi*4]
lea ebx, [eax + ecx*4]
mov dword [ebp - 0xc8], ebx
test ebx, ebx
je 0x4f3f3d
push dword [ebx + 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, 2
test eax, eax
jne 0x4f40bb
mov edi, dword [ebx + 4]
push ecx
mov dword [ebp - 0xd4], esp
mov ebx, dword [edi - 0x10]
mov eax, dword [ebx]
cmp eax, vtable.ATL::CAtlStringMgr.0
je 0x4f3fcc
mov ecx, ebx
call dword [eax + 0x10]
mov ebx, eax
cmp dword [edi - 4], 0
lea eax, [edi - 4]
jl 0x4f3fe5
cmp ebx, dword [edi - 0x10]
jne 0x4f3fe5
lea esi, [edi - 0x10]
lock inc dword [eax]
jmp 0x4f40a8
mov eax, dword [ebx]
mov ecx, dword [edi - 0xc]
mov edx, dword [eax]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4f4072
xor eax, eax
test ecx, ecx
setns al
test eax, eax
jne 0x4f4002
xor esi, esi
jmp 0x4f407b
mov eax, bind
sub eax, ecx
cmp eax, 1
jl 0x4f3ffe
inc ecx
xor eax, eax
lea edx, [ecx + 7]
and edx, 0xfffffff8
cmp ecx, edx
mov dword [ebp - 0xd0], edx
setle al
test eax, eax
jne 0x4f402a
xor esi, esi
jmp 0x4f407b
mov eax, edx
mul esi
test edx, edx
ja 0x4f3ffe
jb 0x4f4039
cmp eax, 0xffffffff
ja 0x4f3ffe
cmp eax, 0xffffffef
ja 0x4f3ffe
mov ecx, dword [ebx + 4]
add eax, 0x10
push eax
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x4f407b
mov eax, dword [ebp - 0xd0]
dec eax
mov dword [esi], ebx
mov dword [esi + 0xc], 1
mov dword [esi + 8], eax
mov dword [esi + 4], 0
jmp 0x4f407b
push 2
push ecx
mov ecx, ebx
call edx
mov esi, eax
test esi, esi
jne 0x4f4084
call fcn.00402c20
mov eax, dword [edi - 0xc]
lea ecx, [esi + 0x10]
mov dword [esi + 4], eax
mov edx, dword [edi - 0xc]
lea eax, [edx*2 + 2]
push eax
push edi
lea edx, [edx*2 + 2]
call fcn.004c7670
add esp, 8
mov ecx, dword [ebp - 0xd4]
lea eax, [esi + 0x10]
mov dword [ecx], eax
call fcn.004e1680
add esp, 4
xor eax, eax
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0xc4], ebx
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xc8]
xor esi, esi
mov byte [ebp - 4], 1
mov dword [ebp - 0xd0], esi
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 8]
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4f4649
mov eax, dword fs:[0x2c]
mov ebx, dword [eax]
mov dword [ebp - 0xb4], ebx
nop word [eax + eax]
mov eax, dword [0x59f248]
cmp eax, dword [ebx + 4]
jle 0x4f4177
push 0x59f248
call fcn.0049af28
mov eax, dword [0x59f248]
add esp, 4
cmp eax, 0xffffffff
jne 0x4f4177
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x53e940
mov dword [0x59f26c], 0x579074
mov dword [0x59f270], eax
mov byte [0x59f274], 0
call fcn.0049b282
push 0x59f248
call fcn.0049aee9
add esp, 8
mov eax, dword [0x59f24c]
cmp eax, dword [ebx + 4]
jle 0x4f41f5
push 0x59f24c
call fcn.0049af28
mov eax, dword [0x59f24c]
add esp, 4
cmp eax, 0xffffffff
jne 0x4f41f5
xor eax, eax
mov dword [0x59f250], 0x57908c
push 0x53e970
mov dword [0x59f254], 0x59f26c
mov dword [0x59f264], 2
mov dword [0x59f25c], 0
mov dword [0x59f260], 0
mov dword [0x59f268], eax
mov dword [0x59f258], 0x59f250
call fcn.0049b282
push 0x59f24c
call fcn.0049aee9
add esp, 8
mov eax, dword [0x59f250]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4f4212
lock inc dword [0x59f264]
mov eax, 0x59f258
jmp 0x4f4219
mov ecx, 0x59f250
call edx
add eax, 0x10
mov dword [ebp - 0xd8], eax
lea ebx, [esi + esi*4]
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0xc8]
shl ebx, 2
mov dword [ebp - 0xcc], ebx
mov eax, dword [esi + 8]
push dword [ebx + eax]
lea eax, [ebp - 0xd8]
push dword [esi + 4]
push 0x563638
push eax
call fcn.004023f0
mov eax, dword [esi + 8]
add esp, 0x10
mov esi, dword [ebp - 0xd8]
add eax, 0x10
add eax, ebx
mov dword [ebp - 0xd4], eax
lea edx, [esi - 0x10]
mov eax, dword [eax]
sub eax, 0x10
mov dword [ebp - 0xb0], edx
mov dword [ebp - 0xa8], eax
cmp edx, eax
je 0x4f4417
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
mov dword [ebp - 0xac], ecx
jl 0x4f4408
mov ecx, dword [edx]
mov dword [ebp - 0xdc], ecx
cmp ecx, dword [eax]
jne 0x4f4408
mov eax, dword [ecx]
cmp eax, vtable.ATL::CAtlStringMgr.0
je 0x4f42bf
call dword [eax + 0x10]
mov ecx, eax
lea edx, [esi - 0x10]
mov dword [ebp - 0xdc], ecx
cmp dword [edx + 0xc], 0
lea eax, [edx + 0xc]
jl 0x4f42d6
cmp ecx, dword [edx]
jne 0x4f42d6
mov ebx, edx
lock inc dword [eax]
jmp 0x4f43a6
mov eax, dword [ecx]
mov edx, dword [edx + 4]
mov ebx, dword [eax]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4f4373
xor eax, eax
test edx, edx
setns al
test eax, eax
jne 0x4f42fa
xor ebx, ebx
jmp 0x4f437a
mov eax, bind
sub eax, edx
cmp eax, 1
jl 0x4f42f3
inc edx
xor eax, eax
lea ebx, [edx + 7]
and ebx, 0xfffffff8
cmp edx, ebx
mov dword [ebp - 0xe0], ebx
setle al
test eax, eax
jne 0x4f4322
xor ebx, ebx
jmp 0x4f437a
mov eax, 2
mul ebx
test edx, edx
ja 0x4f42f3
jb 0x4f4334
cmp eax, 0xffffffff
ja 0x4f42f3
cmp eax, 0xffffffef
ja 0x4f42f3
mov ecx, dword [ecx + 4]
add eax, 0x10
push eax
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x4f437a
mov eax, dword [ebp - 0xdc]
mov dword [ebx], eax
mov eax, dword [ebp - 0xe0]
dec eax
mov dword [ebx + 0xc], 1
mov dword [ebx + 8], eax
mov dword [ebx + 4], 0
jmp 0x4f437a
push 2
push edx
call ebx
mov ebx, eax
test ebx, ebx
je 0x4f407f
mov ecx, dword [esi - 0xc]
mov dword [ebx + 4], ecx
lea ecx, [ebx + 0x10]
mov edx, dword [esi - 0xc]
lea eax, [edx*2 + 2]
push eax
push esi
lea edx, [edx*2 + 2]
call fcn.004c7670
add esp, 8
mov ecx, dword [ebp - 0xac]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4f43f5
mov eax, dword [ebp - 0xa8]
push dword [ebp - 0xa8]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4f43f3
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xd4]
lea eax, [ebx + 0x10]
mov ebx, dword [ebp - 0xcc]
mov dword [ecx], eax
jmp 0x4f4417
call edx
mov ecx, dword [ebp - 0xd4]
lea eax, [ebx + 0x10]
mov ebx, dword [ebp - 0xcc]
mov dword [ecx], eax
jmp 0x4f4417
push dword [esi - 0xc]
mov ecx, dword [ebp - 0xd4]
push esi
call fcn.00402d50
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4f4484
mov edx, dword [ebp - 0xc8]
mov ecx, esi
push 0
mov edx, dword [edx + 8]
mov edx, dword [edx + ebx + 8]
call fcn.004e0890
add esp, 4
test eax, eax
mov eax, dword [ebp - 0xc8]
je 0x4f4455
mov eax, dword [eax + 8]
mov dword [ebx + eax + 0xc], 1
jmp 0x4f45c8
mov ebx, dword [eax + 8]
lea eax, [ebp - 0xa8]
add ebx, dword [ebp - 0xcc]
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0xa8], ebx
cmp eax, edi
jae 0x4f4545
cmp ecx, eax
ja 0x4f4545
mov ebx, eax
jmp 0x4f44b7
mov eax, dword [ebp - 0xc8]
mov ecx, dword [ebp - 0xc4]
mov ebx, dword [eax + 8]
lea eax, [ebp - 0xcc]
add ebx, dword [ebp - 0xcc]
mov dword [ebp - 0xcc], ebx
cmp eax, edi
jae 0x4f4545
cmp ecx, eax
ja 0x4f4545
mov ebx, eax
mov edx, dword [ebp - 0xa4]
sub ebx, ecx
sar ebx, 2
cmp edi, edx
jne 0x4f4536
mov eax, edx
sub eax, edi
sar eax, 2
cmp eax, 1
jae 0x4f4536
sub edi, ecx
mov eax, 0x3fffffff
sar edi, 2
sub eax, edi
cmp eax, 1
jb 0x4f4639
sub edx, ecx
lea esi, [edi + 1]
sar edx, 2
mov ecx, 0x3fffffff
mov eax, edx
mov dword [ebp - 0xa4], edx
shr eax, 1
xor edi, edi
add edx, eax
sub ecx, eax
cmp ecx, dword [ebp - 0xa4]
lea ecx, [ebp - 0xc4]
cmovb edx, edi
cmp edx, esi
cmovb edx, esi
push edx
call fcn.0042f480
mov eax, dword [ebp - 0xbc]
mov ecx, dword [ebp - 0xc4]
mov edi, dword [ebp - 0xc0]
mov dword [ebp - 0xa4], eax
test edi, edi
je 0x4f45bf
mov eax, dword [ecx + ebx*4]
mov dword [edi], eax
jmp 0x4f45bf
mov edx, dword [ebp - 0xa4]
cmp edi, edx
jne 0x4f45b9
mov eax, edx
sub eax, edi
sar eax, 2
cmp eax, 1
jae 0x4f45b9
sub edi, ecx
mov eax, 0x3fffffff
sar edi, 2
sub eax, edi
cmp eax, 1
jb 0x4f4639
sub edx, ecx
lea esi, [edi + 1]
sar edx, 2
mov ecx, 0x3fffffff
mov eax, edx
mov dword [ebp - 0xa4], edx
shr eax, 1
xor edi, edi
add edx, eax
sub ecx, eax
cmp ecx, dword [ebp - 0xa4]
lea ecx, [ebp - 0xc4]
cmovb edx, edi
cmp edx, esi
cmovb edx, esi
push edx
call fcn.0042f480
mov eax, dword [ebp - 0xbc]
mov edi, dword [ebp - 0xc0]
mov dword [ebp - 0xa4], eax
test edi, edi
je 0x4f45bf
mov dword [edi], ebx
add edi, 4
mov dword [ebp - 0xc0], edi
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov ebx, dword [ebp - 0xb0]
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x4f4600
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4f45fe
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4f4600
call edx
mov eax, dword [ebp - 0xc8]
mov esi, dword [ebp - 0xd0]
inc esi
mov dword [ebp - 0xd0], esi
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 8]
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jae 0x4f4643
mov ebx, dword [ebp - 0xb4]
jmp 0x4f4120
push 0x579260
call fcn.004980e5
mov ebx, dword [ebp - 0xc4]
sub edi, ebx
xor eax, eax
sar edi, 2
mov dword [ebp - 0xd0], eax
test edi, edi
je 0x4f4bbe
nop
mov eax, dword [ebx + eax*4]
push fcn.00403110
push 0x4051c0
push 6
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0xa0]
push 0x18
push eax
call fcn.0049b297
push 0x3c
lea eax, [ebp - 0x120]
mov byte [ebp - 4], 3
push 0
push eax
call fcn.0049e130
add esp, 0xc
lea esi, [ebp - 0x90]
mov ebx, 6
mov ecx, dword [esi]
cmp ecx, 0x400
jb 0x4f46d7
mov dword [esi], 0x400
cmp dword [esi + 4], 8
jb 0x4f46c9
mov eax, dword [esi - 0x10]
xor ecx, ecx
mov word [eax + 0x800], cx
jmp 0x4f46e9
lea eax, [esi - 0x10]
xor ecx, ecx
mov word [eax + 0x800], cx
jmp 0x4f46e9
mov eax, 0x400
sub eax, ecx
lea ecx, [esi - 0x10]
push 0
push eax
call fcn.00404330
add esi, 0x18
sub ebx, 1
jne 0x4f46a5
cmp dword [ebp - 0x8c], 8
lea eax, [ebp - 0xa0]
mov ebx, dword [ebp - 0xb4]
lea ecx, [ebp - 0x120]
cmovae eax, dword [ebp - 0xa0]
cmp dword [ebp - 0x74], 8
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x118], eax
lea eax, [ebp - 0x88]
cmovae eax, dword [ebp - 0x88]
cmp dword [ebp - 0x5c], 8
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x100], eax
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0xf8], eax
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xf0], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebx + 4]
push ecx
push 0x10000000
mov dword [ebp - 0x120], 0x3c
push dword [eax - 0xc]
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
mov dword [ebp - 0xb8], eax
test eax, eax
jne 0x4f47f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebx + 4]
push 0x563648
push 0x563698
call fcn.004e78a0
push eax
call fcn.004e76a0
add esp, 0x14
jmp 0x4f4b8a
push dword [ebp - 0xf4]
lea ecx, [ebp - 0xa8]
call fcn.00401ff0
mov byte [ebp - 4], 4
cmp dword [ebp - 0xe8], 0
jbe 0x4f484c
mov edx, dword [ebp - 0xec]
test edx, edx
jne 0x4f4825
xor ecx, ecx
jmp 0x4f483f
mov ecx, edx
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f4830
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xa8]
call fcn.00402320
mov eax, dword [ebp - 0x114]
cmp eax, 3
jne 0x4f49c2
push 0
push 0
sub esp, 8
mov esi, esp
mov dword [ebp - 0xb4], esp
mov dword [ebp - 0xb0], esi
mov ecx, dword [ebx + 0x10]
sub ecx, 0x10
call fcn.004021e0
add eax, 0x10
mov dword [esi], eax
push ecx
mov byte [ebp - 4], 5
mov esi, esp
mov ecx, dword [ebp - 0xa8]
add ecx, 0xfffffff0
mov dword [ebp - 0xb0], esp
mov dword [ebp - 0xac], esi
call fcn.004021e0
add eax, 0x10
mov dword [esi], eax
push ecx
mov byte [ebp - 4], 6
mov ecx, esp
push dword [ebp - 0x110]
call fcn.00401ff0
xor edx, edx
mov byte [ebp - 4], 4
xor ecx, ecx
call fcn.004dd5f0
mov esi, eax
add esp, 0x18
mov dword [ebp - 0xb8], esi
test esi, esi
jne 0x4f4b32
push eax
push 4
sub esp, 8
mov esi, esp
mov dword [ebp - 0xb4], esp
mov dword [ebp - 0xb0], esi
mov ecx, dword [ebx + 0x10]
sub ecx, 0x10
call fcn.004021e0
add eax, 0x10
mov dword [esi], eax
push ecx
mov byte [ebp - 4], 7
mov esi, esp
mov ecx, dword [ebp - 0xa8]
add ecx, 0xfffffff0
mov dword [ebp - 0xb0], esp
mov dword [ebp - 0xac], esi
call fcn.004021e0
add eax, 0x10
mov dword [esi], eax
push ecx
mov byte [ebp - 4], 8
mov ecx, esp
push dword [ebp - 0x110]
call fcn.00401ff0
xor edx, edx
mov byte [ebp - 4], 4
xor ecx, ecx
call fcn.004dd5f0
mov esi, eax
add esp, 0x18
mov dword [ebp - 0xb8], esi
test esi, esi
jne 0x4f4b32
push eax
push 1
sub esp, 8
mov esi, esp
mov dword [ebp - 0xb4], esp
mov dword [ebp - 0xb0], esi
mov ecx, dword [ebx + 0x10]
sub ecx, 0x10
call fcn.004021e0
add eax, 0x10
mov dword [esi], eax
push ecx
mov byte [ebp - 4], 9
mov esi, esp
mov ecx, dword [ebp - 0xa8]
add ecx, 0xfffffff0
mov dword [ebp - 0xb0], esp
mov dword [ebp - 0xac], esi
call fcn.004021e0
add eax, 0x10
mov dword [esi], eax
push ecx
mov byte [ebp - 4], 0xa
mov ecx, esp
push dword [ebp - 0x110]
call fcn.00401ff0
xor edx, edx
mov byte [ebp - 4], 4
xor ecx, ecx
call fcn.004dd5f0
jmp 0x4f4b29
cmp eax, 4
jne 0x4f4b32
push 0
push 0
sub esp, 8
mov esi, esp
mov dword [ebp - 0xb4], esp
mov dword [ebp - 0xb0], esi
mov ecx, dword [ebx + 0x10]
sub ecx, 0x10
call fcn.004021e0
add eax, 0x10
mov dword [esi], eax
push ecx
mov byte [ebp - 4], 0xb
mov esi, esp
mov ecx, dword [ebp - 0xa8]
add ecx, 0xfffffff0
mov dword [ebp - 0xb0], esp
mov dword [ebp - 0xac], esi
call fcn.004021e0
add eax, 0x10
mov dword [esi], eax
push ecx
mov byte [ebp - 4], 0xc
mov ecx, esp
push dword [ebp - 0x110]
call fcn.00401ff0
xor edx, edx
mov byte [ebp - 4], 4
xor ecx, ecx
call fcn.004dcf30
mov esi, eax
add esp, 0x18
mov dword [ebp - 0xb8], esi
test esi, esi
jne 0x4f4b32
push eax
push 4
sub esp, 8
mov esi, esp
mov dword [ebp - 0xb4], esp
mov dword [ebp - 0xb0], esi
mov ecx, dword [ebx + 0x10]
sub ecx, 0x10
call fcn.004021e0
add eax, 0x10
mov dword [esi], eax
push ecx
mov byte [ebp - 4], 0xd
mov esi, esp
mov ecx, dword [ebp - 0xa8]
add ecx, 0xfffffff0
mov dword [ebp - 0xb0], esp
mov dword [ebp - 0xac], esi
call fcn.004021e0
add eax, 0x10
mov dword [esi], eax
push ecx
mov byte [ebp - 4], 0xe
mov ecx, esp
push dword [ebp - 0x110]
call fcn.00401ff0
xor edx, edx
mov byte [ebp - 4], 4
xor ecx, ecx
call fcn.004dcf30
mov esi, eax
add esp, 0x18
mov dword [ebp - 0xb8], esi
test esi, esi
jne 0x4f4b32
push eax
push 1
sub esp, 8
mov esi, esp
mov dword [ebp - 0xb4], esp
mov dword [ebp - 0xb0], esi
mov ecx, dword [ebx + 0x10]
sub ecx, 0x10
call fcn.004021e0
add eax, 0x10
mov dword [esi], eax
push ecx
mov byte [ebp - 4], 0xf
mov esi, esp
mov ecx, dword [ebp - 0xa8]
add ecx, 0xfffffff0
mov dword [ebp - 0xb0], esp
mov dword [ebp - 0xac], esi
call fcn.004021e0
add eax, 0x10
mov dword [esi], eax
push ecx
mov byte [ebp - 4], 0x10
mov ecx, esp
push dword [ebp - 0x110]
call fcn.00401ff0
xor edx, edx
mov byte [ebp - 4], 4
xor ecx, ecx
call fcn.004dcf30
mov dword [ebp - 0xb8], eax
add esp, 0x18
mov edx, dword [ebx + 8]
mov ecx, dword [ebx + 0x10]
push 0
call fcn.004e0890
add esp, 4
test eax, eax
je 0x4f4b4d
mov dword [ebx + 0xc], 1
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov ecx, dword [ebp - 0xa8]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4f4b8a
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4f4b86
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4f4b8a
mov ecx, edx
call esi
push fcn.00403110
push 6
push 0x18
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 1
push eax
call fcn.0049acff
mov eax, dword [ebp - 0xd0]
mov ebx, dword [ebp - 0xc4]
inc eax
mov dword [ebp - 0xd0], eax
cmp eax, edi
jb 0x4f4660
xor ecx, ecx
test edi, edi
je 0x4f4bd2
mov eax, dword [ebx + ecx*4]
cmp dword [eax + 0xc], 0
je 0x4f4bee
inc ecx
cmp ecx, edi
jb 0x4f4bc4
mov ecx, dword [ebp - 0xe4]
mov dword [ebp - 0xb8], 1
test ecx, ecx
je 0x4f4bee
mov eax, dword [ebp - 0xc8]
mov dword [ecx], eax
test ebx, ebx
je 0x4f4c04
mov eax, dword [ebp - 0xa4]
sub eax, ebx
sar eax, 2
push eax
push ebx
call fcn.004149e0
mov ebx, dword [ebp - 0xb8]
jmp 0x4f3f3f
push 0x80004005
call fcn.00401b40
mov ecx, edx
call esi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049aa22
mov esp, ebp
pop ebp
ret 8