Function at 0x402600
Capabilities:
Get number of processors
Identify system language via api
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5423f9
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x595790]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x595790]
xor eax, esp
push eax
lea eax, [esp + 0x430]
mov dword fs:[0], eax
mov ebx, 1
mov esi, ecx
mov dword [esp + 0x30], ebx
call fcn.00417384
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402660
push 0x80004005
call fcn.00401b40
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x38], eax
mov dword [esp + 0x438], 0
call fcn.00417384
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402695
push 0x80004005
call fcn.00401b40
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x34], eax
mov byte [esp + 0x438], bl
call fcn.00417384
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4026c6
push 0x80004005
call fcn.00401b40
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov ebx, esi
mov byte [esp + 0x438], 2
call fcn.00402320
lea eax, [esi + 8]
push str.SubFiles_
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00405340
add esp, 0xc
mov byte [esp + 0x438], 3
mov eax, dword [eax]
mov ebx, dword [esi + 0x10]
lea ecx, [esi + 0x10]
lea edi, [eax - 0x10]
sub ebx, 0x10
cmp edi, ebx
je 0x4027b7
cmp dword [ebx + 0xc], 0
jl 0x4027ad
mov edx, dword [edi]
cmp edx, dword [ebx]
jne 0x4027ad
mov eax, dword [edx]
mov ecx, edx
mov edx, dword [eax + 0x10]
call edx
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x402750
cmp eax, dword [edi]
jne 0x402750
mov ebp, edi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x40278c
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebp, eax
test ebp, ebp
jne 0x402769
call fcn.004018b0
mov eax, dword [edi + 4]
mov dword [ebp + 4], eax
mov eax, dword [edi + 4]
lea ecx, [eax + eax + 2]
push ecx
add edi, 0x10
lea edx, [eax + eax + 2]
push edi
push edx
lea eax, [ebp + 0x10]
push eax
call fcn.00515cf4
add esp, 0x10
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4027a5
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
add ebp, 0x10
mov dword [esi + 0x10], ebp
jmp 0x4027b7
mov edx, dword [eax - 0xc]
push edx
push eax
call fcn.004019d0
mov byte [esp + 0x438], 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 0x4027df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x59d644
lea eax, [esi + 8]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00404100
add esp, 0xc
mov byte [esp + 0x438], 4
mov eax, dword [eax]
mov ebx, dword [esi + 0x14]
lea ecx, [esi + 0x14]
lea edi, [eax - 0x10]
sub ebx, 0x10
cmp edi, ebx
je 0x4028b1
cmp dword [ebx + 0xc], 0
jl 0x4028a7
mov edx, dword [edi]
cmp edx, dword [ebx]
jne 0x4028a7
mov eax, dword [edx]
mov ecx, edx
mov edx, dword [eax + 0x10]
call edx
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x40284a
cmp eax, dword [edi]
jne 0x40284a
mov ebp, edi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x402886
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebp, eax
test ebp, ebp
jne 0x402863
call fcn.004018b0
mov eax, dword [edi + 4]
mov dword [ebp + 4], eax
mov eax, dword [edi + 4]
lea ecx, [eax + eax + 2]
push ecx
add edi, 0x10
lea edx, [eax + eax + 2]
push edi
push edx
lea eax, [ebp + 0x10]
push eax
call fcn.00515cf4
add esp, 0x10
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40289f
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
add ebp, 0x10
mov dword [esi + 0x14], ebp
jmp 0x4028b1
mov edx, dword [eax - 0xc]
push edx
push eax
call fcn.004019d0
mov byte [esp + 0x438], 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 0x4028d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x38]
mov ebp, dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov edi, eax
inc edi
neg edi
sbb edi, edi
and edi, eax
jmp 0x4028f0
mov ecx, dword [esi + 0x18]
push edi
push ecx
lea edx, [esp + 0x34]
push str._s__02d
push edx
call fcn.004054a0
mov ebx, dword [esp + 0x3c]
add esp, 0x10
push ebx
push 0
push 0x1f0001
call ebp
mov dword [esi + 0x34], eax
test eax, eax
je 0x402924
inc edi
cmp edi, 0x32
jl 0x4028f0
jmp 0x402932
push ebx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x34], eax
mov ecx, dword [esi + 8]
mov edi, dword [esi + 0xc]
lea edx, [esi + 0xc]
lea eax, [ecx - 0x10]
sub edi, 0x10
mov dword [esp + 0x1c], edx
cmp eax, edi
je 0x402999
cmp dword [edi + 0xc], 0
lea ebp, [edi + 0xc]
jl 0x40298b
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x40298b
push eax
call fcn.00405630
mov dword [esp + 0x1c], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebp], eax
dec eax
test eax, eax
jg 0x40297c
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
add ecx, 0x10
mov dword [edx], ecx
jmp 0x402999
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, dword [esp + 0x24]
call fcn.004019d0
mov eax, dword [ebx - 0xc]
mov ecx, dword [esp + 0x1c]
push eax
push ebx
call fcn.004054e0
mov ebp, dword [esp + 0x1c]
push 4
push str..ini
mov ecx, ebp
call fcn.004054e0
mov edi, dword [0x59d644]
lea eax, [ebx - 0x10]
add edi, 0xfffffff0
mov dword [esp + 0x18], eax
cmp eax, edi
je 0x402a1e
cmp dword [edi + 0xc], 0
lea ebp, [edi + 0xc]
jl 0x402a0b
mov ecx, dword [eax]
cmp ecx, dword [edi]
jne 0x402a0b
mov edx, eax
push edx
call fcn.00405630
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebp], eax
dec eax
test eax, eax
jg 0x402a00
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add ebx, 0x10
mov dword [0x59d644], ebx
jmp 0x402a1a
mov eax, dword [ebx - 0xc]
push eax
push ebx
mov ecx, 0x59d644
call fcn.004019d0
mov ebp, dword [esp + 0x1c]
push 8
push str._Log.txt
mov ecx, 0x59d644
call fcn.004054e0
push 0x59d644
lea eax, [esi + 8]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00404100
add esp, 0xc
mov byte [esp + 0x438], 5
mov ecx, dword [eax]
mov edi, dword [esi + 0x14]
lea ebx, [esi + 0x14]
lea eax, [ecx - 0x10]
sub edi, 0x10
cmp eax, edi
je 0x402aad
cmp dword [edi + 0xc], 0
lea ebp, [edi + 0xc]
jl 0x402a9d
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x402a9d
push eax
call fcn.00405630
mov dword [esp + 0x24], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebp], eax
dec eax
test eax, eax
jg 0x402a92
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [esp + 0x20]
add ecx, 0x10
mov dword [ebx], ecx
jmp 0x402aa9
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, ebx
call fcn.004019d0
mov ebp, dword [esp + 0x1c]
mov byte [esp + 0x438], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402ad5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x20
call fcn.0041730a
add esp, 4
mov dword [esp + 0x20], eax
mov byte [esp + 0x438], 6
test eax, eax
je 0x402af9
mov ebx, dword [ebx]
push eax
call fcn.00416260
jmp 0x402afb
xor eax, eax
mov byte [esp + 0x438], 2
mov dword [esi + 0x30], eax
test eax, eax
je 0x4030fd
mov edi, dword [0x597398]
mov dword [0x597394], eax
mov ecx, dword [ebp]
lea eax, [ecx - 0x10]
add edi, 0xfffffff0
cmp eax, edi
je 0x402b76
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x402b67
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x402b67
push eax
call fcn.00405630
mov dword [esp + 0x24], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x402b58
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [esp + 0x20]
add ecx, 0x10
mov dword [0x597398], ecx
jmp 0x402b76
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, 0x597398
call fcn.004019d0
push 0x78
call fcn.0041730a
mov edi, eax
add esp, 4
mov dword [esp + 0x30], edi
mov byte [esp + 0x438], 7
test edi, edi
je 0x402bbf
push 0
push 0x84
mov ecx, edi
call fcn.00418693
mov byte [esp + 0x438], 8
push 0x56e530
lea ecx, [edi + 0x74]
mov dword [edi], vtable.CWaitMsgDlg.0
call fcn.00401700
mov ecx, edi
jmp 0x402bc1
xor ecx, ecx
push 0
mov byte [esp + 0x43c], 2
push 0x84
mov dword [esi + 0x78], ecx
call fcn.00418f5f
mov eax, dword [ebp]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
push 0
push str.Force_English
push str.Internationalize
call edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
xor ecx, ecx
mov edx, 0x411
cmp ax, dx
setne cl
mov dword [0x59d5d4], ecx
test ebx, ebx
je 0x402c1c
mov dword [0x59d5d4], 1
push 0
lea ebx, [esi + 0x168]
push str.CAMERA_COMM_Ch_02d
push ebx
call fcn.004054a0
mov edx, dword [esi + 0x2c]
mov eax, dword [edx + 0x20]
add esp, 0xc
mov dword [esi + 0x3c], eax
mov eax, dword [ebp]
push eax
push 0x4e20
push str.First_Recv
push str.NCCP_Timeouts
call edi
cmp eax, 0x64
jae 0x402c5c
mov eax, 0x64
jmp 0x402c66
cmp eax, 0xfffffffe
jbe 0x402c66
mov eax, 0xfffffffe
mov dword [esi + 0x58], eax
mov eax, dword [ebp]
push eax
push 0x4e20
push str.Next_Recv
push str.NCCP_Timeouts
call edi
cmp eax, 0x64
jae 0x402c8a
mov eax, 0x64
jmp 0x402c94
cmp eax, 0xfffffffe
jbe 0x402c94
mov eax, 0xfffffffe
mov dword [esi + 0x5c], eax
mov eax, dword [ebp]
push eax
push 0x4e20
push 0x56e760
push str.NCCP_Timeouts
call edi
cmp eax, 0x64
jae 0x402cb8
mov eax, 0x64
jmp 0x402cc2
cmp eax, 0xfffffffe
jbe 0x402cc2
mov eax, 0xfffffffe
mov dword [esi + 0x60], eax
mov eax, dword [esi + 8]
mov dword [esi + 0x64], eax
mov eax, dword [ebp]
mov dword [esi + 0x68], eax
mov eax, dword [ebx]
mov ecx, esi
mov dword [esi + 0x6c], eax
call fcn.00403510
call fcn.00417384
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402cf7
push 0x80004005
call fcn.00401b40
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x438], 9
call fcn.00417384
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402d29
push 0x80004005
call fcn.00401b40
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x438], 0xa
mov eax, dword [ebp]
mov ebx, dword [ebx]
push eax
push 0x1f4
lea ecx, [esp + 0x44]
push ecx
push str.No_settings
push str.SelectInterface
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x3c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402d70
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x28]
call fcn.004019d0
mov dword [esi + 0x1b8], 0xffffffff
mov edi, dword [esi + 0x17c]
mov dword [esp + 0x28], 0
cmp edi, dword [esi + 0x180]
jbe 0x402db3
call fcn.00515f7c
mov ebp, dword [esi + 0x170]
lea esp, [esp]
mov ebx, dword [esi + 0x180]
cmp dword [esi + 0x17c], ebx
jbe 0x402dd3
call fcn.00515f7c
mov eax, dword [esi + 0x170]
test ebp, ebp
je 0x402de1
cmp ebp, eax
je 0x402de6
call fcn.00515f7c
cmp edi, ebx
je 0x402eb5
test ebp, ebp
jne 0x402e12
call fcn.00515f7c
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x402e03
call fcn.00515f7c
mov eax, dword [edi]
mov ecx, dword [eax + 4]
call ecx
test eax, eax
jne 0x402e17
xor ecx, ecx
jmp 0x402e2f
mov eax, dword [ebp]
jmp 0x402df9
mov ecx, eax
lea ebx, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x402e20
sub ecx, ebx
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x2c]
call fcn.004019d0
mov ecx, dword [esp + 0x24]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x402656
mov eax, dword [esp + 0x20]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402e77
test dx, dx
je 0x402e73
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402e77
add eax, 4
add ecx, 4
test dx, dx
jne 0x402e51
xor eax, eax
jmp 0x402e7c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x402eab
inc dword [esp + 0x28]
test ebp, ebp
jne 0x402ea6
call fcn.00515f7c
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x402e9e
call fcn.00515f7c
add edi, 4
jmp 0x402dc0
mov eax, dword [ebp]
jmp 0x402e94
mov edx, dword [esp + 0x28]
mov dword [esi + 0x1b8], edx
call fcn.004033f0
push 0xff00ff
push 0x1e
push 0x10
push 0x83
lea ecx, [esi + 0x10c]
call fcn.004216aa
push str.CamConf_
lea eax, [esi + 8]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.00405340
add esp, 0xc
mov byte [esp + 0x438], 0xb
mov eax, dword [eax]
mov ebx, dword [esi + 0x114]
lea edx, [esi + 0x114]
lea edi, [eax - 0x10]
sub ebx, 0x10
cmp edi, ebx
je 0x402fae
cmp dword [ebx + 0xc], 0
jl 0x402fa2
mov ecx, dword [edi]
cmp ecx, dword [ebx]
jne 0x402fa2
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x402f42
cmp eax, dword [edi]
jne 0x402f42
mov ebp, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x402f7e
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebp, eax
test ebp, ebp
jne 0x402f5b
call fcn.004018b0
mov eax, dword [edi + 4]
mov dword [ebp + 4], eax
mov eax, dword [edi + 4]
lea ecx, [eax + eax + 2]
push ecx
add edi, 0x10
lea edx, [eax + eax + 2]
push edi
push edx
lea eax, [ebp + 0x10]
push eax
call fcn.00515cf4
add esp, 0x10
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402f97
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
add ebp, 0x10
mov dword [esi + 0x114], ebp
jmp 0x402fae
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, edx
call fcn.004019d0
mov byte [esp + 0x438], 0xa
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402fd6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0x2c]
mov eax, dword [esp + 0x1c]
lea edx, [esi + 0x11c]
mov dword [esi + 0x158], ecx
mov dword [esi + 0x118], edx
mov eax, dword [eax]
mov ebx, dword [esi + 0x16c]
lea ebp, [esi + 0x16c]
lea edi, [eax - 0x10]
sub ebx, 0x10
cmp edi, ebx
je 0x4030a9
cmp dword [ebx + 0xc], 0
jl 0x40309d
mov ecx, dword [edi]
cmp ecx, dword [ebx]
jne 0x40309d
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x403040
cmp eax, dword [edi]
jne 0x403040
mov esi, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40307c
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
jne 0x403059
call fcn.004018b0
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 4]
lea ecx, [eax + eax + 2]
push ecx
add edi, 0x10
lea edx, [eax + eax + 2]
push edi
push edx
lea eax, [esi + 0x10]
push eax
call fcn.00515cf4
add esp, 0x10
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x403095
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
add esi, 0x10
mov dword [ebp], esi
jmp 0x4030a9
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, ebp
call fcn.004019d0
mov byte [esp + 0x438], 9
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
xor esi, esi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4030d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x438], 2
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 0x403101
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x403101
mov esi, dword [esp + 0x30]
mov byte [esp + 0x438], 1
mov eax, dword [esp + 0x18]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403126
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x438], 0
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40314e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x438], 0xffffffff
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 0x403179
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x430]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.00515ce5
add esp, 0x428
ret