Function at 0x412940
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 0x458688
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 0x3072
push 0x45f630
mov dword [esp + 0x8c], 0
call fcn.00433609
add esp, 0xc
push eax
lea ecx, [esp + 0x24]
call fcn.00402830
push 2
push 0x3072
push 0x45f630
mov byte [esp + 0x8c], 1
call fcn.00433609
add esp, 0xc
push eax
lea eax, [esp + 0x34]
lea ecx, [esi + 0x18]
push eax
call fcn.0040a060
mov esi, eax
push 2
push 0x3b2
push 0x45f634
mov byte [esp + 0x94], 2
call fcn.00433609
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 0x882
mov bl, 6
push 0x45edac
mov byte [esp + 0x8c], bl
call fcn.00433609
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 0x412abc
test esi, esi
jne 0x412aa3
xor eax, eax
jmp 0x412ab1
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412aa8
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 0x412b09
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 0x412b39
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 0x412b61
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 0x412b89
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 2
push 0x3072
push 0x45f630
call fcn.00433609
add esp, 0xc
push eax
lea ecx, [esp + 0x2c]
call fcn.00402830
push 1
push 0x2aac
push 0x45e8a0
mov byte [esp + 0x8c], 0xc
call fcn.00433609
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 0x882
push 0x45edac
mov byte [esp + 0x8c], 0x10
call fcn.00433609
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 0x412c84
test esi, esi
jne 0x412c68
xor eax, eax
jmp 0x412c79
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412c70
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 0x412cd4
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 0x412d04
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 0x412d2c
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 0x412e70
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 0x412e06
cmp dword [edi + 0xc], 0
jl 0x412df8
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x412df8
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x412da2
cmp eax, dword [esi]
jne 0x412da2
mov ebx, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x412dd6
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 0x413546
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.0043f4e5
add esp, 0x10
lea eax, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x412def
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 0x412e06
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 0x412e2e
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 0x412e63
mov edx, dword [esp + 0x70]
cmp dword [edx - 0xc], 0
jg 0x412f80
test ecx, ecx
setge al
test al, al
jne 0x412d40
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 0x412e98
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 0x412eb8
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 0x412ed8
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 0x412f00
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 0x412f20
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 0x412f40
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 0x412f6b
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.00434287
mov byte [esp + 0x80], 0x16
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
jle 0x41303c
push 0x5c
push eax
call fcn.004409a0
add esp, 8
test eax, eax
je 0x41303c
mov ecx, dword [esp + 0x18]
sub eax, ecx
test eax, eax
jle 0x41303c
mov edx, dword [esp + 0x48]
mov edi, dword [edx - 0xc]
test edi, edi
jle 0x41301d
mov eax, dword [esp + 0x44]
cmp dword [eax - 0xc], 0
jl 0x41354b
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 0x412ffe
push esi
lea ecx, [esp + 0x4c]
call fcn.00402fc0
mov edx, dword [esp + 0x48]
mov byte [edx + edi], bl
test esi, esi
jl 0x41354b
cmp esi, dword [edx - 8]
jg 0x41354b
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 0x412d10
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 0x882
push 0x45edac
mov byte [esp + 0x8c], 0x19
call fcn.00433609
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 0x41310e
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x413100
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x413100
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 0x4130f3
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 0x41310e
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 0x413139
test ebx, ebx
jne 0x413120
xor eax, eax
jmp 0x41312e
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413125
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 0x413189
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 0x4131a0
test ecx, ecx
setge al
test al, al
je 0x4132e4
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 0x41327a
cmp dword [edi + 0xc], 0
jl 0x41326c
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x41326c
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x413216
cmp eax, dword [esi]
jne 0x413216
mov ebx, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x41324a
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 0x413546
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.0043f4e5
add esp, 0x10
lea eax, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x413263
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 0x41327a
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 0x4132a2
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 0x4132d7
mov edx, dword [esp + 0x60]
cmp dword [edx - 0xc], 0
jg 0x4133d2
test ecx, ecx
setge al
test al, al
jne 0x4131b0
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 0x41330c
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 0x41332c
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 0x41334c
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 0x41347a
mov edi, dword [ebp + 8]
mov eax, dword [edi]
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x413555
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.00440250
add esp, 8
cmp eax, ebx
sete al
test al, al
je 0x4133db
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.004155f0
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 0x41347a
inc dword [esp + 0x1c]
jmp 0x4131a0
lea ecx, [esp + 0x40]
push ecx
lea esi, [esp + 0x48]
call fcn.00433fc8
lea edx, [esp + 0x14]
push edx
add edi, 0xb4
push edi
mov ecx, eax
mov byte [esp + 0x88], 0x1d
call fcn.004159a0
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 0x41342e
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.004155f0
mov eax, dword [esi]
sub eax, 1
je 0x413464
sub eax, 1
jne 0x41347a
lea ecx, [esi + 0x14]
push ecx
call fcn.004342e2
add esi, 4
push esi
mov dword [esp + 0x20], eax
call fcn.004342e2
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
sete al
jmp 0x413472
add esi, 0x14
push esi
call fcn.004342e2
test eax, eax
setg al
test al, al
je 0x41347a
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 0x4134d4
cmp dword [esi + 0xc], ebx
lea edi, [esi + 0xc]
jl 0x4134c6
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4134c6
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 0x4134bb
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 0x4134d4
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 0x413531
cmp dword [eax + 0xc], ebx
lea edx, [eax + 0xc]
jge 0x41350b
cmp dword [ecx - 8], ebx
jl 0x41354b
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 0x412d10
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x413521
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 0x412d10
call fcn.004031c0
push 0x80070057
call fcn.00401000
push 0x80004005
call fcn.00401000
int3