Function at 0x40f9a0
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 [0x46e780]
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 0x410472
push eax
call fcn.00402470
lea esi, [eax + 0x10]
add esp, 4
lea edi, [ebp + 0x114]
mov dword [ebp - 0x14], esi
call fcn.00407770
mov edi, dword [ebp + 0x114]
mov eax, dword [edi - 0xc]
cmp eax, ebx
jl 0x40fa3b
push str.http:__
push edi
call fcn.0043b5b7
add esp, 8
cmp eax, ebx
je 0x40fa3b
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x40fa3b
mov ecx, dword [0x472c98]
push ecx
lea edx, [ebp - 0x14]
push str._sgotsoft.xml
push edx
call fcn.004016e0
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 0x410453
push 0x461818
lea ecx, [ebp - 0x4c]
push esi
push ecx
mov dword [ebp - 0x4c], ebx
call fcn.0043be07
mov eax, dword [ebp - 0x4c]
add esp, 0xc
cmp eax, ebx
jne 0x40fa7b
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x410463
push eax
lea ecx, [ebp - 0x80]
call fcn.00428146
call fcn.0042190e
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40fa9e
push 0x80004005
call fcn.00401350
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.004286a6
test eax, eax
je 0x410420
mov eax, dword [ebp]
cmp dword [eax - 0xc], 0
jl 0x410391
push str._item
push eax
call fcn.0043b5b7
add esp, 8
test eax, eax
je 0x410391
mov ecx, dword [ebp]
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x410391
cmp dword [ecx - 0xc], 0
jge 0x40fb09
or eax, 0xffffffff
jmp 0x40fb25
push str.name
push ecx
call fcn.0043b5b7
add esp, 8
test eax, eax
jne 0x40fb20
or eax, 0xffffffff
jmp 0x40fb25
sub eax, dword [ebp]
sar eax, 1
add eax, 6
lea ebx, [ebp]
call fcn.004076c0
mov eax, dword [ebp]
cmp dword [eax - 0xc], 0
jge 0x40fb3e
or eax, 0xffffffff
jmp 0x40fb5a
push 0x461848
push eax
call fcn.0043b5b7
add esp, 8
test eax, eax
jne 0x40fb55
or eax, 0xffffffff
jmp 0x40fb5a
sub eax, dword [ebp]
sar eax, 1
push eax
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp]
call fcn.00407850
mov eax, dword [ebp]
cmp dword [eax - 0xc], 0
jge 0x40fb75
or eax, 0xffffffff
jmp 0x40fb91
push 0x46184c
push eax
call fcn.0043b5b7
add esp, 8
test eax, eax
jne 0x40fb8c
or eax, 0xffffffff
jmp 0x40fb91
sub eax, dword [ebp]
sar eax, 1
add eax, 9
lea ebx, [ebp]
call fcn.004076c0
mov eax, dword [ebp]
cmp dword [eax - 0xc], 0
jge 0x40fbaa
or eax, 0xffffffff
jmp 0x40fbc6
push 0x461848
push eax
call fcn.0043b5b7
add esp, 8
test eax, eax
jne 0x40fbc1
or eax, 0xffffffff
jmp 0x40fbc6
sub eax, dword [ebp]
sar eax, 1
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp]
call fcn.00407850
mov eax, dword [ebp]
cmp dword [eax - 0xc], 0
jge 0x40fbe1
or eax, 0xffffffff
jmp 0x40fbfd
push str.extendName
push eax
call fcn.0043b5b7
add esp, 8
test eax, eax
jne 0x40fbf8
or eax, 0xffffffff
jmp 0x40fbfd
sub eax, dword [ebp]
sar eax, 1
add eax, 0xc
lea ebx, [ebp]
call fcn.004076c0
mov eax, dword [ebp]
cmp dword [eax - 0xc], 0
jge 0x40fc16
or eax, 0xffffffff
jmp 0x40fc32
push 0x461848
push eax
call fcn.0043b5b7
add esp, 8
test eax, eax
jne 0x40fc2d
or eax, 0xffffffff
jmp 0x40fc32
sub eax, dword [ebp]
sar eax, 1
push eax
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp]
call fcn.00407850
mov eax, dword [ebp]
cmp dword [eax - 0xc], 0
jge 0x40fc4d
or eax, 0xffffffff
jmp 0x40fc69
push str.check
push eax
call fcn.0043b5b7
add esp, 8
test eax, eax
jne 0x40fc64
or eax, 0xffffffff
jmp 0x40fc69
sub eax, dword [ebp]
sar eax, 1
add eax, 7
lea ebx, [ebp]
call fcn.004076c0
mov eax, dword [ebp]
cmp dword [eax - 0xc], 0
jge 0x40fc82
or eax, 0xffffffff
jmp 0x40fc9e
push 0x461848
push eax
call fcn.0043b5b7
add esp, 8
test eax, eax
jne 0x40fc99
or eax, 0xffffffff
jmp 0x40fc9e
sub eax, dword [ebp]
sar eax, 1
push eax
lea edx, [ebp - 0x50]
push edx
lea ecx, [ebp]
call fcn.00407850
mov eax, dword [ebp]
cmp dword [eax - 0xc], 0
jge 0x40fcb9
or eax, 0xffffffff
jmp 0x40fcd5
push str.regRoot
push eax
call fcn.0043b5b7
add esp, 8
test eax, eax
jne 0x40fcd0
or eax, 0xffffffff
jmp 0x40fcd5
sub eax, dword [ebp]
sar eax, 1
add eax, 9
lea ebx, [ebp]
call fcn.004076c0
mov eax, dword [ebp]
cmp dword [eax - 0xc], 0
jge 0x40fcee
or eax, 0xffffffff
jmp 0x40fd0a
push 0x461848
push eax
call fcn.0043b5b7
add esp, 8
test eax, eax
jne 0x40fd05
or eax, 0xffffffff
jmp 0x40fd0a
sub eax, dword [ebp]
sar eax, 1
push eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp]
call fcn.00407850
mov eax, dword [ebp]
cmp dword [eax - 0xc], 0
jge 0x40fd25
or eax, 0xffffffff
jmp 0x40fd41
push str.regPath
push eax
call fcn.0043b5b7
add esp, 8
test eax, eax
jne 0x40fd3c
or eax, 0xffffffff
jmp 0x40fd41
sub eax, dword [ebp]
sar eax, 1
add eax, 9
lea ebx, [ebp]
call fcn.004076c0
mov eax, dword [ebp]
cmp dword [eax - 0xc], 0
jge 0x40fd5a
or eax, 0xffffffff
jmp 0x40fd76
push 0x461848
push eax
call fcn.0043b5b7
add esp, 8
test eax, eax
jne 0x40fd71
or eax, 0xffffffff
jmp 0x40fd76
sub eax, dword [ebp]
sar eax, 1
push eax
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp]
call fcn.00407850
mov eax, dword [ebp]
cmp dword [eax - 0xc], 0
jge 0x40fd91
or eax, 0xffffffff
jmp 0x40fdad
push str.regKey
push eax
call fcn.0043b5b7
add esp, 8
test eax, eax
jne 0x40fda8
or eax, 0xffffffff
jmp 0x40fdad
sub eax, dword [ebp]
sar eax, 1
add eax, 8
lea ebx, [ebp]
call fcn.004076c0
mov eax, dword [ebp]
cmp dword [eax - 0xc], 0
jge 0x40fdc6
or eax, 0xffffffff
jmp 0x40fde2
push 0x461848
push eax
call fcn.0043b5b7
add esp, 8
test eax, eax
jne 0x40fddd
or eax, 0xffffffff
jmp 0x40fde2
sub eax, dword [ebp]
sar eax, 1
push eax
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp]
call fcn.00407850
mov eax, dword [ebp]
cmp dword [eax - 0xc], 0
jge 0x40fdfd
or eax, 0xffffffff
jmp 0x40fe19
push str.url
push eax
call fcn.0043b5b7
add esp, 8
test eax, eax
jne 0x40fe14
or eax, 0xffffffff
jmp 0x40fe19
sub eax, dword [ebp]
sar eax, 1
add eax, 5
lea ebx, [ebp]
call fcn.004076c0
mov eax, dword [ebp]
cmp dword [eax - 0xc], 0
jge 0x40fe32
or eax, 0xffffffff
jmp 0x40fe4e
push 0x461848
push eax
call fcn.0043b5b7
add esp, 8
test eax, eax
jne 0x40fe49
or eax, 0xffffffff
jmp 0x40fe4e
sub eax, dword [ebp]
sar eax, 1
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp]
call fcn.00407850
call fcn.0042190e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40fa94
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.004016e0
add esp, 0x24
call fcn.0042190e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40fa94
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.004016e0
add esp, 0xc
call fcn.0042190e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40fa94
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.004016e0
add esp, 0xc
call fcn.0042190e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40fa94
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.004016e0
add esp, 0xc
call fcn.0042190e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40fa94
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.004016e0
add esp, 8
add esi, 0xfffffff0
mov dword [ebp - 0x5c], esp
mov edi, esp
push esi
mov dword [ebp - 0x5c], esi
call fcn.00402470
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.00402470
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.0040aff0
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.00402470
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.00402470
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.0040aff0
add esp, 4
add ebx, 0xfffffff0
mov dword [ebp - 0x10], esp
mov edi, esp
push ebx
mov dword [ebp - 0x10], ebx
call fcn.00402470
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.00402470
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.0040aff0
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 0x410068
test dx, dx
je 0x410064
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x410068
add eax, 4
add ecx, 4
test dx, dx
jne 0x410042
xor eax, eax
jmp 0x41006d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x41007d
mov ebx, SysReAllocString
jmp 0x410097
lea eax, [ebp - 8]
push str.HKCT
push eax
call fcn.004038a0
add esp, 8
test al, al
je 0x410097
mov ebx, SysReAllocString
push 0x45f238
lea ecx, [ebp - 0xc]
call fcn.004024e0
call dword [0x46fb34]
mov esi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x4100e0
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x4100c8
xor eax, eax
jmp 0x4100e0
lea edi, [eax + eax]
mov eax, edi
call fcn.00441030
mov ecx, dword [ebp - 4]
mov eax, esp
push esi
push edi
push ecx
push eax
call fcn.00408280
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 0x41016a
test ebx, ebx
mov dword [ebp - 0x60], 0x104
mov dword [ebp - 0x40], 1
je 0x410136
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x410121
xor eax, eax
jmp 0x410136
lea edi, [eax + eax]
mov eax, edi
call fcn.00441030
mov eax, esp
push esi
push edi
push ebx
push eax
call fcn.00408280
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 0x410160
push 0x45f254
lea ecx, [ebp - 0xc]
call fcn.00402820
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.00402470
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.00402470
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.0040aff0
mov eax, dword [ebp - 0x30]
add eax, 1
add esp, 8
cmp eax, 3
mov dword [ebp - 0x30], eax
jg 0x4103a7
mov edi, dword [ebp - 0xc]
mov ecx, 0x45f238
mov eax, edi
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4101e6
test dx, dx
je 0x4101e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4101e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4101c0
xor eax, eax
jmp 0x4101eb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4101f3
add dword [ebp - 0x3c], 1
cmp dword [ebp - 0x3c], 2
jge 0x4103a7
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410219
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 0x410235
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 0x41024e
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 0x41026a
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 0x410286
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 0x4102a2
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 0x4102c1
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 0x4102dd
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 0x4102fc
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 0x41031b
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 0x41033a
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 0x410356
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 0x410375
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 0x410391
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.004286a6
test eax, eax
jne 0x40facb
jmp 0x410417
lea ecx, [ebp - 0xc]
call fcn.00407990
lea ecx, [ebp - 0x1c]
call fcn.00407990
lea ecx, [ebp - 0x38]
call fcn.00407990
lea ecx, [ebp - 0x24]
call fcn.00407990
lea ecx, [ebp - 0x34]
call fcn.00407990
lea ecx, [ebp - 0x2c]
call fcn.00407990
lea ecx, [ebp - 0x20]
call fcn.00407990
lea ecx, [ebp - 0x18]
call fcn.00407990
lea ecx, [ebp - 4]
call fcn.00407990
lea ecx, [ebp - 8]
call fcn.00407990
lea ecx, [ebp - 0x50]
call fcn.00407990
lea ecx, [ebp - 0x44]
call fcn.00407990
lea ecx, [ebp - 0x28]
call fcn.00407990
lea ecx, [ebp - 0x48]
call fcn.00407990
mov edi, dword [ebp + 0x114]
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x4c]
push edx
call fcn.0043bec9
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 0x41044b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x80]
call fcn.00428573
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41046f
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 0x41048b
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.00439c98
add ebp, 0x10c
mov esp, ebp
pop ebp
ret