Function at 0x4129f0
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get ntdll base address
Get process heap force flags
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x458758
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x46f1b0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi]
sub eax, 0x10
push eax
call fcn.00403010
add eax, 0x10
add esp, 4
mov dword [esp + 0x14], eax
push 2
push 0x458
push 0x45f620
mov dword [esp + 0x8c], 0
call fcn.00433314
add esp, 0xc
push eax
lea ecx, [esp + 0x24]
call fcn.00402830
push 2
push 0x458
push 0x45f620
mov byte [esp + 0x8c], 1
call fcn.00433314
add esp, 0xc
push eax
lea eax, [esp + 0x34]
lea ecx, [esi + 0x18]
push eax
call fcn.0040a060
mov esi, eax
push 2
push 0x2ad4
push 0x45f624
mov byte [esp + 0x94], 2
call fcn.00433314
add esp, 0x14
push eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call fcn.0040a060
add esp, 8
mov edi, eax
mov byte [esp + 0x80], 3
mov edx, dword [0x471864]
mov eax, dword [edx + 0xc]
mov ecx, 0x471864
call eax
add eax, 0x10
mov dword [esp + 0x64], eax
mov byte [esp + 0x80], 4
mov edx, dword [0x471864]
mov eax, dword [edx + 0xc]
mov ecx, 0x471864
call eax
add eax, 0x10
mov dword [esp + 0x68], eax
mov byte [esp + 0x80], 5
mov edx, dword [0x471864]
mov eax, dword [edx + 0xc]
mov ecx, 0x471864
call eax
add eax, 0x10
mov dword [esp + 0x70], eax
push 2
push 0x30d7
mov bl, 6
push 0x45ed9c
mov byte [esp + 0x8c], bl
call fcn.00433314
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x68]
mov esi, eax
call fcn.00402d80
mov edx, dword [esp + 0x64]
cmp dword [edx - 0xc], 0
jne 0x412b6c
test esi, esi
jne 0x412b53
xor eax, eax
jmp 0x412b61
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412b58
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x6c]
call fcn.00402b60
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, edi
call fcn.00409fa0
add esp, 8
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0x84], 7
call fcn.00402d80
mov byte [esp + 0x80], bl
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412bb9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x6c], 0
mov byte [esp + 0x80], 9
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412be9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x80], 0xa
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412c11
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x80], 0xb
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 0x412c39
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 2
push 0x458
push 0x45f620
call fcn.00433314
add esp, 0xc
push eax
lea ecx, [esp + 0x2c]
call fcn.00402830
push 1
push 0x24b4
push 0x45e890
mov byte [esp + 0x8c], 0xc
call fcn.00433314
add esp, 0xc
push eax
lea ecx, [esp + 0x28]
call fcn.00402830
mov byte [esp + 0x80], 0xd
mov edx, dword [0x471864]
mov eax, dword [edx + 0xc]
mov ecx, 0x471864
call eax
add eax, 0x10
mov dword [esp + 0x44], eax
mov byte [esp + 0x80], 0xe
mov edx, dword [0x471864]
mov eax, dword [edx + 0xc]
mov ecx, 0x471864
call eax
add eax, 0x10
mov dword [esp + 0x48], eax
mov byte [esp + 0x80], 0xf
mov edx, dword [0x471864]
mov eax, dword [edx + 0xc]
mov ecx, 0x471864
call eax
add eax, 0x10
mov dword [esp + 0x50], eax
push 2
push 0x30d7
push 0x45ed9c
mov byte [esp + 0x8c], 0x10
call fcn.00433314
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x48]
mov esi, eax
call fcn.00402d80
mov edx, dword [esp + 0x44]
cmp dword [edx - 0xc], 0
jne 0x412d34
test esi, esi
jne 0x412d18
xor eax, eax
jmp 0x412d29
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412d20
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x4c]
call fcn.00402b60
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00409fa0
add esp, 8
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x84], 0x11
call fcn.00402d80
mov byte [esp + 0x80], 0x10
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412d84
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x4c], 0
mov byte [esp + 0x80], 0x13
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 0x412db4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x80], 0x14
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412ddc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x6c], 0
setge al
test al, al
je 0x412f20
lea esp, [esp]
mov edx, dword [esp + 0x64]
lea ecx, [esp + 0x6c]
push ecx
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x74]
push ecx
call fcn.00409dc0
mov byte [esp + 0x80], 0x15
mov eax, dword [eax]
mov edi, dword [esp + 0x70]
lea esi, [eax - 0x10]
add edi, 0xfffffff0
cmp esi, edi
je 0x412eb6
cmp dword [edi + 0xc], 0
jl 0x412ea8
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x412ea8
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x412e52
cmp eax, dword [esi]
jne 0x412e52
mov ebx, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x412e86
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x4135f6
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 4]
inc eax
push eax
add esi, 0x10
push esi
push eax
lea ecx, [ebx + 0x10]
push ecx
call fcn.0043f4de
add esp, 0x10
lea eax, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x412e9f
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
add ebx, 0x10
mov dword [esp + 0x70], ebx
jmp 0x412eb6
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x78]
call fcn.00402b60
mov byte [esp + 0x80], 0x14
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 0x412ede
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str._t__r_n
lea eax, [esp + 0x74]
call fcn.0041f6d0
mov ebx, eax
mov eax, str._t__r_n
call fcn.004282b0
mov ecx, dword [esp + 0x6c]
test ecx, ecx
setg al
test al, al
je 0x412f13
mov edx, dword [esp + 0x70]
cmp dword [edx - 0xc], 0
jg 0x413030
test ecx, ecx
setge al
test al, al
jne 0x412df0
mov byte [esp + 0x80], 0xb
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412f48
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412f68
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412f88
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x80], 0
mov eax, dword [esp + 0x70]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412fb0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412fd0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412ff0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x80], 0xffffffff
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 0x41301b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x68]
call fcn.00433f95
mov byte [esp + 0x80], 0x16
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
jle 0x4130ec
push 0x5c
push eax
call fcn.004409f7
add esp, 8
test eax, eax
je 0x4130ec
mov ecx, dword [esp + 0x18]
sub eax, ecx
test eax, eax
jle 0x4130ec
mov edx, dword [esp + 0x48]
mov edi, dword [edx - 0xc]
test edi, edi
jle 0x4130cd
mov eax, dword [esp + 0x44]
cmp dword [eax - 0xc], 0
jl 0x4135fb
mov bl, byte [eax]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
lea esi, [edi + 1]
sub eax, esi
or eax, ecx
jge 0x4130ae
push esi
lea ecx, [esp + 0x4c]
call fcn.00402fc0
mov edx, dword [esp + 0x48]
mov byte [edx + edi], bl
test esi, esi
jl 0x4135fb
cmp esi, dword [edx - 8]
jg 0x4135fb
mov dword [edx - 0xc], esi
mov byte [edx + esi], 0
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x50]
call fcn.00402a40
mov byte [esp + 0x80], 0x14
mov eax, dword [esp + 0x18]
jmp 0x412dc0
mov edx, dword [0x471864]
mov eax, dword [edx + 0xc]
mov ecx, 0x471864
call eax
add eax, 0x10
mov dword [esp + 0x54], eax
mov byte [esp + 0x80], 0x17
mov edx, dword [0x471864]
mov eax, dword [edx + 0xc]
mov ecx, 0x471864
call eax
add eax, 0x10
mov dword [esp + 0x58], eax
mov byte [esp + 0x80], 0x18
mov edx, dword [0x471864]
mov eax, dword [edx + 0xc]
mov ecx, 0x471864
call eax
add eax, 0x10
mov dword [esp + 0x60], eax
push 2
push 0x30d7
push 0x45ed9c
mov byte [esp + 0x8c], 0x19
call fcn.00433314
mov ecx, dword [esp + 0x50]
mov esi, dword [esp + 0x60]
mov ebx, eax
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
add esp, 0xc
cmp eax, esi
je 0x4131be
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4131b0
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4131b0
push eax
call fcn.00403010
mov dword [esp + 0x20], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4131a3
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x1c]
add ecx, 0x10
mov dword [esp + 0x54], ecx
jmp 0x4131be
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x5c]
call fcn.00402b60
mov edx, dword [esp + 0x54]
cmp dword [edx - 0xc], 0
jne 0x4131e9
test ebx, ebx
jne 0x4131d0
xor eax, eax
jmp 0x4131de
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4131d5
sub eax, edx
push eax
push ebx
lea ecx, [esp + 0x5c]
call fcn.00402b60
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x50]
call fcn.00409fa0
add esp, 8
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x84], 0x1a
call fcn.00402d80
mov byte [esp + 0x80], 0x19
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x413239
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ecx, ecx
mov dword [esp + 0x5c], ecx
mov byte [esp + 0x80], 0x1b
mov dword [esp + 0x1c], ecx
jmp 0x413250
test ecx, ecx
setge al
test al, al
je 0x413394
lea ecx, [ecx]
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x5c]
push ecx
push edx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x64]
push ecx
call fcn.00409dc0
mov byte [esp + 0x80], 0x1c
mov eax, dword [eax]
mov edi, dword [esp + 0x60]
lea esi, [eax - 0x10]
add edi, 0xfffffff0
cmp esi, edi
je 0x41332a
cmp dword [edi + 0xc], 0
jl 0x41331c
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x41331c
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x4132c6
cmp eax, dword [esi]
jne 0x4132c6
mov ebx, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4132fa
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x4135f6
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 4]
inc eax
push eax
add esi, 0x10
push esi
push eax
lea ecx, [ebx + 0x10]
push ecx
call fcn.0043f4de
add esp, 0x10
lea eax, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x413313
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
add ebx, 0x10
mov dword [esp + 0x60], ebx
jmp 0x41332a
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x68]
call fcn.00402b60
mov byte [esp + 0x80], 0x1b
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 0x413352
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str._t__r_n
lea eax, [esp + 0x64]
call fcn.0041f6d0
mov ebx, eax
mov eax, str._t__r_n
call fcn.004282b0
mov ecx, dword [esp + 0x5c]
test ecx, ecx
setg al
test al, al
je 0x413387
mov edx, dword [esp + 0x60]
cmp dword [edx - 0xc], 0
jg 0x413482
test ecx, ecx
setge al
test al, al
jne 0x413260
mov byte [esp + 0x80], 0x16
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4133bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4133dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4133fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ebx, ebx
cmp dword [esp + 0x1c], ebx
jle 0x41352a
mov edi, dword [ebp + 8]
mov eax, dword [edi]
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x413605
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.004402a7
add esp, 8
cmp eax, ebx
sete al
test al, al
je 0x41348b
lea edx, [esp + 0x48]
lea esi, [edi + 0x70]
lea ecx, [esi + 4]
push edx
call fcn.00402d80
lea eax, [esp + 0x44]
push eax
mov ecx, esi
call fcn.00402d80
lea ecx, [edi + 0x6c]
push ecx
mov dword [esi + 8], ebx
call fcn.004156a0
lea edx, [esp + 0x48]
lea esi, [edi + 0x94]
lea ecx, [esi + 4]
push edx
call fcn.00402d80
lea eax, [esp + 0x44]
push eax
mov ecx, esi
call fcn.00402d80
mov dword [esi + 8], ebx
jmp 0x41352a
inc dword [esp + 0x1c]
jmp 0x413250
lea ecx, [esp + 0x40]
push ecx
lea esi, [esp + 0x48]
call fcn.00433cd6
lea edx, [esp + 0x14]
push edx
add edi, 0xb4
push edi
mov ecx, eax
mov byte [esp + 0x88], 0x1d
call fcn.00415a50
mov edi, eax
mov byte [esp + 0x80], 0x16
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4134de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [edi + 8]
push esi
call fcn.004156a0
mov eax, dword [esi]
sub eax, 1
je 0x413514
sub eax, 1
jne 0x41352a
lea ecx, [esi + 0x14]
push ecx
call fcn.00433ff0
add esi, 4
push esi
mov dword [esp + 0x20], eax
call fcn.00433ff0
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
sete al
jmp 0x413522
add esi, 0x14
push esi
call fcn.00433ff0
test eax, eax
setg al
test al, al
je 0x41352a
or dword [edi + 4], 0x40
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x413584
cmp dword [esi + 0xc], ebx
lea edi, [esi + 0xc]
jl 0x413576
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x413576
push eax
call fcn.00403010
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x41356b
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x14], ebx
xor ebx, ebx
jmp 0x413584
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402b60
mov ecx, dword [esp + 0x48]
mov esi, dword [ecx - 0x10]
cmp dword [ecx - 0xc], ebx
lea eax, [ecx - 0x10]
je 0x4135e1
cmp dword [eax + 0xc], ebx
lea edx, [eax + 0xc]
jge 0x4135bb
cmp dword [ecx - 8], ebx
jl 0x4135fb
mov dword [ecx - 0xc], ebx
mov byte [ecx], 0
mov byte [esp + 0x80], 0x14
mov eax, dword [esp + 0x18]
mov dword [esp + 0x4c], ebx
jmp 0x412dc0
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4135d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
add eax, 0x10
mov dword [esp + 0x48], eax
mov byte [esp + 0x80], 0x14
mov eax, dword [esp + 0x18]
mov dword [esp + 0x4c], ebx
jmp 0x412dc0
call fcn.004031c0
push 0x80070057
call fcn.00401000
push 0x80004005
call fcn.00401000
int3