Function at 0x403500
Capabilities:
Delete internet cache
Enumerate internet cache

Disassembly:
push 0xffffffffffffffff
push 0x4650c0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4835f0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov dword [esp + 0x50], 0
call fcn.00434084
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x403549
push 0x80004005
call fcn.00401200
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x50], 1
call fcn.00434084
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x403578
push 0x80004005
call fcn.00401200
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x50], 2
call fcn.00434084
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4035a7
push 0x80004005
call fcn.00401200
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
push 0x2000
mov byte [esp + 0x54], 3
call fcn.0042c153
mov esi, dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryW]
add esp, 4
lea ecx, [esp + 0x28]
mov ebx, eax
push ecx
push ebx
mov dword [ebx], 0x2000
push 0
mov dword [esp + 0x34], 0x2000
call esi
mov dword [esp + 0x2c], eax
test eax, eax
je 0x403813
test dword [ebx + 0xc], 0x100000
jne 0x4036cb
mov edx, dword [ebx + 4]
test edx, edx
jne 0x40360d
xor eax, eax
jmp 0x403621
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403612
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.004029b0
mov edx, dword [esp + 0x5c]
push 0x2e
push edx
call fcn.0044ae60
add esp, 8
test eax, eax
jne 0x403644
or eax, 0xffffffff
jmp 0x40364a
sub eax, dword [esp + 0x5c]
sar eax, 1
push eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x64]
call fcn.00409e40
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], 4
call fcn.00402ad0
mov byte [esp + 0x50], 3
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40368d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea edi, [esp + 0x1c]
call fcn.00409de0
cmp dword [esp + 0x58], 0
mov ebp, dword [esp + 0x1c]
je 0x403720
test ebp, ebp
je 0x4036cb
mov eax, dword [0x488684]
cmp dword [eax - 0xc], 0
jl 0x4036cb
push ebp
push eax
call fcn.0044ac8b
add esp, 8
test eax, eax
je 0x4036cb
sub eax, dword [0x488684]
sar eax, 1
cmp eax, 0xffffffff
jg 0x40374a
mov edi, dword [esp + 0x2c]
mov esi, dword [sym.imp.WININET.dll_FindNextUrlCacheEntryW]
lea edx, [esp + 0x28]
push edx
push ebx
push edi
call esi
test eax, eax
je 0x403c5c
test dword [ebx + 0xc], 0x100000
jne 0x4036cb
mov eax, dword [ebx + 4]
push eax
lea ecx, [esp + 0x24]
call fcn.0040bad0
mov byte [esp + 0x50], 8
mov ecx, dword [esp + 0x20]
push 0x2e
push ecx
call fcn.0044ae60
add esp, 8
test eax, eax
jne 0x4039c0
or eax, 0xffffffff
jmp 0x4039c6
test ebp, ebp
je 0x4036cb
mov eax, dword [0x488688]
cmp dword [eax - 0xc], 0
jl 0x4036cb
push ebp
push eax
call fcn.0044ac8b
add esp, 8
test eax, eax
je 0x4036cb
sub eax, dword [0x488688]
sar eax, 1
cmp eax, 0xffffffff
jle 0x4036cb
mov esi, dword [esp + 0x14]
cmp dword [esi - 0xc], 0
jl 0x403773
push str.http
push esi
call fcn.0044ac8b
add esp, 8
test eax, eax
je 0x403773
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x4036cb
push 0x2e
lea ecx, [esp + 0x18]
call fcn.00409db0
push eax
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00409e40
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x54], 5
call fcn.00402ad0
lea ecx, [esp + 0x24]
mov byte [esp + 0x50], 3
call fcn.00401070
lea edi, [esp + 0x18]
call fcn.00409de0
mov edx, dword [esp + 0x18]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x4036cb
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.WININET.dll_FindCloseUrlCache]
push ebx
call fcn.0042c15e
add esp, 4
lea ecx, [esp + 0x18]
call fcn.00401070
lea ecx, [esp + 0x1c]
call fcn.00401070
lea ecx, [esp + 0x14]
call fcn.00401070
lea ecx, [esp + 0x5c]
call fcn.00401070
mov eax, 1
jmp 0x4040ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x403849
push 0
call dword [sym.imp.WININET.dll_FindCloseUrlCache]
push ebx
call fcn.0042c15e
lea eax, [edi - 0x10]
add esp, 4
mov byte [esp + 0x50], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x404070
push ebx
call fcn.0042c15e
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0042c153
add esp, 8
lea edx, [esp + 0x28]
push edx
mov ebx, eax
push ebx
push 0
call esi
mov dword [esp + 0x2c], eax
test eax, eax
je 0x404052
test dword [ebx + 0xc], 0x100000
jne 0x4036cb
mov eax, dword [ebx + 4]
push eax
lea ecx, [esp + 0x18]
call fcn.0040bc80
push 0x2e
lea ecx, [esp + 0x60]
call fcn.00409db0
push eax
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x64]
call fcn.00409e40
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], 6
call fcn.00402ad0
mov byte [esp + 0x50], 3
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4038dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea edi, [esp + 0x1c]
call fcn.00409de0
cmp dword [esp + 0x58], 0
mov ebp, dword [esp + 0x1c]
je 0x40392b
test ebp, ebp
je 0x4036cb
mov eax, dword [0x488684]
cmp dword [eax - 0xc], 0
jl 0x4036cb
push ebp
push eax
call fcn.0044ac8b
add esp, 8
test eax, eax
je 0x4036cb
sub eax, dword [0x488684]
sar eax, 1
cmp eax, 0xffffffff
jg 0x403965
jmp 0x4036cb
test ebp, ebp
je 0x4036cb
mov eax, dword [0x488688]
cmp dword [eax - 0xc], 0
jl 0x4036cb
push ebp
push eax
call fcn.0044ac8b
add esp, 8
test eax, eax
je 0x4036cb
sub eax, dword [0x488688]
sar eax, 1
cmp eax, 0xffffffff
jle 0x4036cb
mov esi, dword [esp + 0x14]
cmp dword [esi - 0xc], 0
jl 0x40398e
push str.http
push esi
call fcn.0044ac8b
add esp, 8
test eax, eax
je 0x40398e
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x4036cb
push 0x2e
lea ecx, [esp + 0x18]
call fcn.00409db0
push eax
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00409e40
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x54], 7
call fcn.00402ad0
lea ecx, [esp + 0x34]
jmp 0x4037a0
sub eax, dword [esp + 0x20]
sar eax, 1
push eax
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x28]
call fcn.00409e40
mov byte [esp + 0x50], 9
mov esi, dword [esp + 0x24]
mov edi, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x403a00
push edi
lea ecx, [esp + 0x28]
call fcn.00401180
mov esi, dword [esp + 0x24]
lea eax, [edi + 1]
push eax
push esi
call fcn.0044b0f8
add esp, 8
test edi, edi
jl 0x403fc1
cmp edi, dword [esi - 8]
jg 0x403fc1
xor ecx, ecx
mov dword [esi - 0xc], edi
mov word [esi + edi*2], cx
mov edx, dword [ebx + 4]
test edx, edx
jne 0x403a32
xor eax, eax
jmp 0x403a46
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403a37
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.004029b0
mov edx, dword [esp + 0x5c]
push 0x2e
push edx
call fcn.0044ae60
add esp, 8
test eax, eax
jne 0x403a69
or eax, 0xffffffff
jmp 0x403a6f
sub eax, dword [esp + 0x5c]
sar eax, 1
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x64]
call fcn.00409e40
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x54], 0xa
call fcn.00402ad0
mov byte [esp + 0x50], 9
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403ab2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x24]
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, 1
sub ecx, dword [ebp - 4]
sub eax, esi
or eax, ecx
jge 0x403ad8
push esi
lea ecx, [esp + 0x28]
call fcn.00401180
mov ebp, dword [esp + 0x24]
lea ecx, [esi + 1]
push ecx
push ebp
call fcn.0044b0f8
add esp, 8
test esi, esi
jl 0x403fc1
cmp esi, dword [ebp - 8]
jg 0x403fc1
xor edx, edx
mov dword [ebp - 0xc], esi
mov word [ebp + esi*2], dx
cmp dword [esp + 0x58], edx
je 0x403b38
mov eax, dword [0x488684]
cmp dword [eax - 0xc], edx
jl 0x403c0d
push ebp
push eax
call fcn.0044ac8b
add esp, 8
test eax, eax
je 0x403c0d
sub eax, dword [0x488684]
sar eax, 1
cmp eax, 0xffffffff
jg 0x403b6a
jmp 0x403c0d
mov eax, dword [0x488688]
cmp dword [eax - 0xc], 0
jl 0x403c0d
push ebp
push eax
call fcn.0044ac8b
add esp, 8
test eax, eax
je 0x403c0d
sub eax, dword [0x488688]
sar eax, 1
cmp eax, 0xffffffff
jle 0x403c0d
mov ecx, dword [esp + 0x20]
cmp dword [ecx - 0xc], 0
jl 0x403b93
push str.http
push ecx
call fcn.0044ac8b
mov ecx, dword [esp + 0x28]
add esp, 8
test eax, eax
je 0x403b93
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jne 0x403c0d
push 0x2e
push ecx
call fcn.0044ae60
add esp, 8
test eax, eax
jne 0x403ba7
or eax, 0xffffffff
jmp 0x403bad
sub eax, dword [esp + 0x20]
sar eax, 1
push eax
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x28]
call fcn.00409e40
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x54], 0xb
call fcn.00402ad0
mov byte [esp + 0x50], 9
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403bf0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea edi, [esp + 0x18]
call fcn.00409de0
mov ecx, dword [esp + 0x18]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x403eb8
lea eax, [ebp - 0x10]
mov byte [esp + 0x50], 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403c2e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 3
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4036cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4036cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x403fcb
push ebx
call fcn.0042c15e
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0042c153
add esp, 8
lea edx, [esp + 0x28]
push edx
mov ebx, eax
push ebx
push edi
call esi
test eax, eax
je 0x40400f
test dword [ebx + 0xc], 0x100000
jne 0x4036cb
mov edx, dword [ebx + 4]
test edx, edx
jne 0x403ca9
xor eax, eax
jmp 0x403cbf
mov eax, edx
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403cb0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.004029b0
mov eax, dword [esp + 0x5c]
push 0x2e
push eax
call fcn.0044ae60
add esp, 8
test eax, eax
jne 0x403ce2
or eax, 0xffffffff
jmp 0x403ce8
sub eax, dword [esp + 0x5c]
sar eax, 1
push eax
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x64]
call fcn.00409e40
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], 0xc
call fcn.00402ad0
mov byte [esp + 0x50], 3
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403d2b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea edi, [esp + 0x1c]
call fcn.00409de0
cmp dword [esp + 0x58], 0
mov ebp, dword [esp + 0x1c]
je 0x403d70
test ebp, ebp
je 0x4036cb
mov eax, dword [0x488684]
cmp dword [eax - 0xc], 0
jl 0x4036cb
push ebp
push eax
call fcn.0044ac8b
add esp, 8
test eax, eax
je 0x4036cb
sub eax, dword [0x488684]
jmp 0x403d9f
test ebp, ebp
je 0x4036cb
mov eax, dword [0x488688]
cmp dword [eax - 0xc], 0
jl 0x4036cb
push ebp
push eax
call fcn.0044ac8b
add esp, 8
test eax, eax
je 0x4036cb
sub eax, dword [0x488688]
sar eax, 1
cmp eax, 0xffffffff
jle 0x4036cb
mov esi, dword [esp + 0x14]
cmp dword [esi - 0xc], 0
jl 0x403dd3
push str.http
push esi
call fcn.0044ac8b
add esp, 8
test eax, eax
je 0x403dd3
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x4036cb
push 0x2e
push esi
call fcn.0044ae60
add esp, 8
test eax, eax
jne 0x403de7
or eax, 0xffffffff
jmp 0x403deb
sub eax, esi
sar eax, 1
push eax
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00409e40
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x54], 0xd
call fcn.00402ad0
mov byte [esp + 0x50], 3
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403e2e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea edi, [esp + 0x18]
call fcn.00409de0
mov edi, dword [esp + 0x18]
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x4036cb
mov ecx, dword [ebx + 4]
push ecx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.WININET.dll_FindCloseUrlCache]
push ebx
call fcn.0042c15e
lea eax, [edi - 0x10]
add esp, 4
mov byte [esp + 0x50], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403e8a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x50], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403eab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 0
lea eax, [esi - 0x10]
jmp 0x403f72
mov ecx, dword [ebx + 4]
push ecx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.WININET.dll_FindCloseUrlCache]
push ebx
call fcn.0042c15e
lea eax, [ebp - 0x10]
add esp, 4
mov byte [esp + 0x50], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403ef7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 3
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403f1c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403f41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403f66
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403f8b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x50], 0xffffffff
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403809
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x4040ec
push 0x80070057
call fcn.00401200
push edi
cmp eax, 0x103
je 0x4037d6
call dword [sym.imp.WININET.dll_FindCloseUrlCache]
push ebx
call fcn.0042c15e
add esp, 4
lea ecx, [esp + 0x18]
call fcn.00401070
lea ecx, [esp + 0x1c]
call fcn.00401070
lea ecx, [esp + 0x14]
call fcn.00401070
lea ecx, [esp + 0x5c]
call fcn.00401070
jmp 0x4040ea
push edi
call dword [sym.imp.WININET.dll_FindCloseUrlCache]
push ebx
call fcn.0042c15e
mov byte [esp + 0x54], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404044
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
jmp 0x404084
push ebx
call fcn.0042c15e
lea eax, [edi - 0x10]
add esp, 4
mov byte [esp + 0x50], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40407c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x50], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40409d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4040c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x50], 0xffffffff
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4040ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 8