Function at 0x40f5e0
Capabilities:
Check if file exists
Download url
Query or enumerate registry value
Receive data

Disassembly:
push ebp
lea ebp, [esp - 0x10c]
sub esp, 0x18c
mov eax, dword [0x46d750]
xor eax, ebp
mov dword [ebp + 0x108], eax
mov eax, dword [ebp + 0x114]
mov ecx, dword [eax - 0xc]
push ebx
xor ebx, ebx
push esi
add eax, 0xfffffff0
cmp ecx, ebx
push edi
je 0x4100b2
push eax
call fcn.004020e0
lea esi, [eax + 0x10]
add esp, 4
lea edi, [ebp + 0x114]
mov dword [ebp - 0x14], esi
call fcn.00407670
mov edi, dword [ebp + 0x114]
mov eax, dword [edi - 0xc]
cmp eax, ebx
jl 0x40f67b
push str.http:__
push edi
call fcn.0043a679
add esp, 8
cmp eax, ebx
je 0x40f67b
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x40f67b
mov ecx, dword [0x471c38]
push ecx
lea edx, [ebp - 0x14]
push str._sgotsoft.xml
push edx
call fcn.00404fb0
mov esi, dword [ebp - 0x14]
add esp, 0xc
push ebx
push ebx
push esi
push edi
push ebx
call sub.urlmon.dll_URLDownloadToFileW
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x410093
push 0x460648
lea ecx, [ebp - 0x4c]
push esi
push ecx
mov dword [ebp - 0x4c], ebx
call fcn.0043ae95
mov eax, dword [ebp - 0x4c]
add esp, 0xc
cmp eax, ebx
jne 0x40f6bb
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4100a3
push eax
lea ecx, [ebp - 0x80]
call fcn.00424db5
call fcn.00423381
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40f6de
push 0x80004005
call fcn.00402160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ecx, [ebp]
add eax, 0x10
push ecx
lea ecx, [ebp - 0x80]
mov dword [ebp], eax
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x3c], ebx
call fcn.00425353
test eax, eax
je 0x410060
mov eax, dword [ebp]
cmp dword [eax - 0xc], 0
jl 0x40ffd1
push str._item
push eax
call fcn.0043a679
add esp, 8
test eax, eax
je 0x40ffd1
mov ecx, dword [ebp]
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x40ffd1
cmp dword [ecx - 0xc], 0
jge 0x40f749
or eax, 0xffffffff
jmp 0x40f765
push str.name
push ecx
call fcn.0043a679
add esp, 8
test eax, eax
jne 0x40f760
or eax, 0xffffffff
jmp 0x40f765
sub eax, dword [ebp]
sar eax, 1
add eax, 6
lea ebx, [ebp]
call fcn.004075c0
mov eax, dword [ebp]
cmp dword [eax - 0xc], 0
jge 0x40f77e
or eax, 0xffffffff
jmp 0x40f79a
push 0x460678
push eax
call fcn.0043a679
add esp, 8
test eax, eax
jne 0x40f795
or eax, 0xffffffff
jmp 0x40f79a
sub eax, dword [ebp]
sar eax, 1
push eax
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp]
call fcn.00407750
mov eax, dword [ebp]
cmp dword [eax - 0xc], 0
jge 0x40f7b5
or eax, 0xffffffff
jmp 0x40f7d1
push 0x46067c
push eax
call fcn.0043a679
add esp, 8
test eax, eax
jne 0x40f7cc
or eax, 0xffffffff
jmp 0x40f7d1
sub eax, dword [ebp]
sar eax, 1
add eax, 9
lea ebx, [ebp]
call fcn.004075c0
mov eax, dword [ebp]
cmp dword [eax - 0xc], 0
jge 0x40f7ea
or eax, 0xffffffff
jmp 0x40f806
push 0x460678
push eax
call fcn.0043a679
add esp, 8
test eax, eax
jne 0x40f801
or eax, 0xffffffff
jmp 0x40f806
sub eax, dword [ebp]
sar eax, 1
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp]
call fcn.00407750
mov eax, dword [ebp]
cmp dword [eax - 0xc], 0
jge 0x40f821
or eax, 0xffffffff
jmp 0x40f83d
push str.extendName
push eax
call fcn.0043a679
add esp, 8
test eax, eax
jne 0x40f838
or eax, 0xffffffff
jmp 0x40f83d
sub eax, dword [ebp]
sar eax, 1
add eax, 0xc
lea ebx, [ebp]
call fcn.004075c0
mov eax, dword [ebp]
cmp dword [eax - 0xc], 0
jge 0x40f856
or eax, 0xffffffff
jmp 0x40f872
push 0x460678
push eax
call fcn.0043a679
add esp, 8
test eax, eax
jne 0x40f86d
or eax, 0xffffffff
jmp 0x40f872
sub eax, dword [ebp]
sar eax, 1
push eax
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp]
call fcn.00407750
mov eax, dword [ebp]
cmp dword [eax - 0xc], 0
jge 0x40f88d
or eax, 0xffffffff
jmp 0x40f8a9
push str.check
push eax
call fcn.0043a679
add esp, 8
test eax, eax
jne 0x40f8a4
or eax, 0xffffffff
jmp 0x40f8a9
sub eax, dword [ebp]
sar eax, 1
add eax, 7
lea ebx, [ebp]
call fcn.004075c0
mov eax, dword [ebp]
cmp dword [eax - 0xc], 0
jge 0x40f8c2
or eax, 0xffffffff
jmp 0x40f8de
push 0x460678
push eax
call fcn.0043a679
add esp, 8
test eax, eax
jne 0x40f8d9
or eax, 0xffffffff
jmp 0x40f8de
sub eax, dword [ebp]
sar eax, 1
push eax
lea edx, [ebp - 0x50]
push edx
lea ecx, [ebp]
call fcn.00407750
mov eax, dword [ebp]
cmp dword [eax - 0xc], 0
jge 0x40f8f9
or eax, 0xffffffff
jmp 0x40f915
push str.regRoot
push eax
call fcn.0043a679
add esp, 8
test eax, eax
jne 0x40f910
or eax, 0xffffffff
jmp 0x40f915
sub eax, dword [ebp]
sar eax, 1
add eax, 9
lea ebx, [ebp]
call fcn.004075c0
mov eax, dword [ebp]
cmp dword [eax - 0xc], 0
jge 0x40f92e
or eax, 0xffffffff
jmp 0x40f94a
push 0x460678
push eax
call fcn.0043a679
add esp, 8
test eax, eax
jne 0x40f945
or eax, 0xffffffff
jmp 0x40f94a
sub eax, dword [ebp]
sar eax, 1
push eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp]
call fcn.00407750
mov eax, dword [ebp]
cmp dword [eax - 0xc], 0
jge 0x40f965
or eax, 0xffffffff
jmp 0x40f981
push str.regPath
push eax
call fcn.0043a679
add esp, 8
test eax, eax
jne 0x40f97c
or eax, 0xffffffff
jmp 0x40f981
sub eax, dword [ebp]
sar eax, 1
add eax, 9
lea ebx, [ebp]
call fcn.004075c0
mov eax, dword [ebp]
cmp dword [eax - 0xc], 0
jge 0x40f99a
or eax, 0xffffffff
jmp 0x40f9b6
push 0x460678
push eax
call fcn.0043a679
add esp, 8
test eax, eax
jne 0x40f9b1
or eax, 0xffffffff
jmp 0x40f9b6
sub eax, dword [ebp]
sar eax, 1
push eax
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp]
call fcn.00407750
mov eax, dword [ebp]
cmp dword [eax - 0xc], 0
jge 0x40f9d1
or eax, 0xffffffff
jmp 0x40f9ed
push str.regKey
push eax
call fcn.0043a679
add esp, 8
test eax, eax
jne 0x40f9e8
or eax, 0xffffffff
jmp 0x40f9ed
sub eax, dword [ebp]
sar eax, 1
add eax, 8
lea ebx, [ebp]
call fcn.004075c0
mov eax, dword [ebp]
cmp dword [eax - 0xc], 0
jge 0x40fa06
or eax, 0xffffffff
jmp 0x40fa22
push 0x460678
push eax
call fcn.0043a679
add esp, 8
test eax, eax
jne 0x40fa1d
or eax, 0xffffffff
jmp 0x40fa22
sub eax, dword [ebp]
sar eax, 1
push eax
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp]
call fcn.00407750
mov eax, dword [ebp]
cmp dword [eax - 0xc], 0
jge 0x40fa3d
or eax, 0xffffffff
jmp 0x40fa59
push str.url
push eax
call fcn.0043a679
add esp, 8
test eax, eax
jne 0x40fa54
or eax, 0xffffffff
jmp 0x40fa59
sub eax, dword [ebp]
sar eax, 1
add eax, 5
lea ebx, [ebp]
call fcn.004075c0
mov eax, dword [ebp]
cmp dword [eax - 0xc], 0
jge 0x40fa72
or eax, 0xffffffff
jmp 0x40fa8e
push 0x460678
push eax
call fcn.0043a679
add esp, 8
test eax, eax
jne 0x40fa89
or eax, 0xffffffff
jmp 0x40fa8e
sub eax, dword [ebp]
sar eax, 1
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp]
call fcn.00407750
call fcn.00423381
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40f6d4
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x44]
mov esi, dword [ebp - 0x48]
push ecx
mov ecx, dword [ebp - 8]
push edx
mov edx, dword [ebp - 0x28]
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
push eax
push ecx
push edx
push ebx
push esi
lea eax, [ebp - 0x2c]
push str._s_s_s_s_s_s_s
push eax
call fcn.00404fb0
add esp, 0x24
call fcn.00423381
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40f6d4
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov edi, dword [ebp - 0x30]
push edi
lea ecx, [ebp - 0x34]
add eax, 0x10
push str.softname_d
push ecx
mov dword [ebp - 0x34], eax
call fcn.00404fb0
add esp, 0xc
call fcn.00423381
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40f6d4
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
push edi
lea ecx, [ebp - 0x24]
add eax, 0x10
push str.softshortname_d
push ecx
mov dword [ebp - 0x24], eax
call fcn.00404fb0
add esp, 0xc
call fcn.00423381
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40f6d4
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
push edi
lea ecx, [ebp - 0x38]
add eax, 0x10
push str.softcheck_d
push ecx
mov dword [ebp - 0x38], eax
call fcn.00404fb0
add esp, 0xc
call fcn.00423381
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40f6d4
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, edi
push ecx
lea edx, [ebp - 0x1c]
add eax, 0x10
push str.softurl_d
push edx
mov dword [ebp - 0x1c], eax
call fcn.00404fb0
add esp, 8
add esi, 0xfffffff0
mov dword [ebp - 0x5c], esp
mov edi, esp
push esi
mov dword [ebp - 0x5c], esi
call fcn.004020e0
add eax, 0x10
mov dword [edi], eax
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
mov dword [ebp - 0x10], esp
mov edi, esp
push eax
mov dword [ebp - 0x6c], eax
call fcn.004020e0
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.0040aec0
mov eax, dword [ebp - 0x2c]
add esp, 4
add eax, 0xfffffff0
mov dword [ebp - 0x10], esp
mov edi, esp
push eax
mov dword [ebp - 0x64], eax
call fcn.004020e0
add eax, 0x10
mov dword [edi], eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov dword [ebp - 0x10], esp
mov edi, esp
push eax
mov dword [ebp - 0x68], eax
call fcn.004020e0
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.0040aec0
add esp, 4
add ebx, 0xfffffff0
mov dword [ebp - 0x10], esp
mov edi, esp
push ebx
mov dword [ebp - 0x10], ebx
call fcn.004020e0
add eax, 0x10
mov dword [edi], eax
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov dword [ebp - 0x54], esp
mov edi, esp
push eax
mov dword [ebp - 0x54], eax
call fcn.004020e0
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.0040aec0
mov eax, dword [ebp - 8]
add esp, 8
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
mov ecx, str.HKCU
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40fca8
test dx, dx
je 0x40fca4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40fca8
add eax, 4
add ecx, 4
test dx, dx
jne 0x40fc82
xor eax, eax
jmp 0x40fcad
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x40fcbd
mov ebx, SysReAllocString
jmp 0x40fcd7
lea eax, [ebp - 8]
push str.HKCT
push eax
call fcn.004036d0
add esp, 8
test al, al
je 0x40fcd7
mov ebx, SysReAllocString
push 0x45e128
lea ecx, [ebp - 0xc]
call fcn.00402310
call dword [0x46eaf4]
mov esi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x40fd20
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x40fd08
xor eax, eax
jmp 0x40fd20
lea edi, [eax + eax]
mov eax, edi
call fcn.00440090
mov ecx, dword [ebp - 4]
mov eax, esp
push esi
push edi
push ecx
push eax
call fcn.00408150
lea edx, [ebp - 0x58]
push edx
push 0xf003f
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov ebx, dword [ebp - 0x18]
jne 0x40fdaa
test ebx, ebx
mov dword [ebp - 0x60], 0x104
mov dword [ebp - 0x40], 1
je 0x40fd76
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x40fd61
xor eax, eax
jmp 0x40fd76
lea edi, [eax + eax]
mov eax, edi
call fcn.00440090
mov eax, esp
push esi
push edi
push ebx
push eax
call fcn.00408150
lea ecx, [ebp - 0x60]
push ecx
lea edx, [ebp + 4]
push edx
mov edx, dword [ebp - 0x58]
lea ecx, [ebp - 0x40]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40fda0
push 0x45e144
lea ecx, [ebp - 0xc]
call fcn.00402650
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x40], esp
mov edi, esp
push eax
call fcn.004020e0
mov esi, dword [ebp - 0x38]
add eax, 0x10
mov dword [edi], eax
add esi, 0xfffffff0
mov dword [ebp - 0x40], esp
mov edi, esp
push esi
call fcn.004020e0
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.0040aec0
mov eax, dword [ebp - 0x30]
add eax, 1
add esp, 8
cmp eax, 3
mov dword [ebp - 0x30], eax
jg 0x40ffe7
mov edi, dword [ebp - 0xc]
mov ecx, 0x45e128
mov eax, edi
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40fe26
test dx, dx
je 0x40fe22
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40fe26
add eax, 4
add ecx, 4
test dx, dx
jne 0x40fe00
xor eax, eax
jmp 0x40fe2b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40fe33
add dword [ebp - 0x3c], 1
cmp dword [ebp - 0x3c], 2
jge 0x40ffe7
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fe59
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x68]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fe75
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fe8e
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [ebp - 0x54]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40feaa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x6c]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fec6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x64]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fee2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ff01
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ff1d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ff3c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ff5b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x50]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ff7a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ff96
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ffb5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x5c]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ffd1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp]
push ecx
lea ecx, [ebp - 0x80]
call fcn.00425353
test eax, eax
jne 0x40f70b
jmp 0x410057
lea ecx, [ebp - 0xc]
call fcn.004022f0
lea ecx, [ebp - 0x1c]
call fcn.004022f0
lea ecx, [ebp - 0x38]
call fcn.004022f0
lea ecx, [ebp - 0x24]
call fcn.004022f0
lea ecx, [ebp - 0x34]
call fcn.004022f0
lea ecx, [ebp - 0x2c]
call fcn.004022f0
lea ecx, [ebp - 0x20]
call fcn.004022f0
lea ecx, [ebp - 0x18]
call fcn.004022f0
lea ecx, [ebp - 4]
call fcn.004022f0
lea ecx, [ebp - 8]
call fcn.004022f0
lea ecx, [ebp - 0x50]
call fcn.004022f0
lea ecx, [ebp - 0x44]
call fcn.004022f0
lea ecx, [ebp - 0x28]
call fcn.004022f0
lea ecx, [ebp - 0x48]
call fcn.004022f0
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp + 0x114]
mov edx, dword [ebp - 0x4c]
push edx
call fcn.0043af58
mov eax, dword [ebp]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41008b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x80]
call fcn.00425220
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4100af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4100cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x108]
xor ecx, ebp
call fcn.00438dc7
add ebp, 0x10c
mov esp, ebp
pop ebp
ret