Function at 0x418720
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a2c70
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push edi
mov eax, dword [0x4d32ac]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ecx, dword [esi + 4]
lea eax, [esp + 0x28]
push eax
push ecx
call dword [0x4a7454]
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
push 0x4bb9d8
sub eax, 0x12c
cdq
sub eax, edx
mov ebp, eax
sar ebp, 1
lea eax, [esi + 0x1468]
mov ebx, 4
add ebp, 7
call fcn.00404880
lea edx, [esp + 0x14]
mov dword [esi + 0xa3c], ebp
mov dword [esi + 0xa40], 0x1f
push edx
mov ecx, 0x4baa38
mov dword [esi + 0xa48], 0xc
mov dword [esi + 0xa44], 2
call fcn.00404920
xor ebx, ebx
lea edi, [esi + 0xa50]
lea eax, [esp + 0x14]
mov dword [esp + 0x40], ebx
call fcn.00403b10
mov dword [esp + 0x40], 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 0x4187f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, 0x4bb9d8
call fcn.00404920
lea edi, [esi + 0xa60]
lea eax, [esp + 0x14]
mov dword [esp + 0x40], 1
call fcn.00403b10
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41883f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, 0x4aa6a0
mov dword [esi + 0xa4c], ebx
call fcn.00404920
lea edx, [esp + 0x14]
push edx
mov ecx, 0x4aa6a0
mov dword [esp + 0x44], 2
call fcn.00404920
lea eax, [esp + 0x10]
push eax
mov ecx, 0x4bb9e8
mov byte [esp + 0x44], 3
call fcn.00404920
lea edi, [esi + 0xa54]
lea eax, [esp + 0x10]
mov byte [esp + 0x40], 4
call fcn.00403b10
lea edi, [esi + 0xa5c]
lea eax, [esp + 0x20]
call fcn.00403b10
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], ebx
lea edi, [esi + 0xa58]
lea eax, [esp + 0x10]
je 0x4188b9
lea eax, [esp + 0x14]
call fcn.00403b10
mov byte [esp + 0x40], 3
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4188e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x40], 2
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 0x418908
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x40], 0xffffffff
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 0x418930
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0xa44]
imul eax, eax, 0x16
add eax, 0x29
lea ecx, [esp + 0x20]
mov ebx, eax
mov dword [esi + 0xa64], ebp
mov dword [esi + 0xa68], ebx
push ecx
mov ecx, 0x4baa38
mov dword [esi + 0xa70], 0xc
mov dword [esi + 0xa6c], 3
call fcn.00404920
lea edi, [esi + 0xa78]
lea eax, [esp + 0x20]
mov dword [esp + 0x40], 5
call fcn.00403b10
or ebp, 0xffffffff
mov dword [esp + 0x40], ebp
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4189aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, 0x4bb9d8
call fcn.00404920
lea edi, [esi + 0xa88]
lea eax, [esp + 0x20]
mov dword [esp + 0x40], 6
call fcn.00403b10
mov dword [esp + 0x40], ebp
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4189f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, 0x4aa6a0
mov dword [esi + 0xa74], 0
call fcn.00404920
lea edx, [esp + 0x1c]
push edx
mov ecx, 0x4aa6a0
mov dword [esp + 0x44], 7
call fcn.00404920
lea eax, [esp + 0x18]
push eax
mov ecx, str.p_tt_tk_tf_t
mov byte [esp + 0x44], 8
call fcn.00404920
lea edi, [esi + 0xa7c]
lea eax, [esp + 0x18]
mov byte [esp + 0x40], 9
call fcn.00403b10
lea edi, [esi + 0xa84]
lea eax, [esp + 0x24]
call fcn.00403b10
mov ecx, dword [esp + 0x1c]
cmp dword [ecx - 0xc], 0
lea edi, [esi + 0xa80]
lea eax, [esp + 0x18]
je 0x418a72
lea eax, [esp + 0x1c]
call fcn.00403b10
mov byte [esp + 0x40], 8
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x418a9b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x40], 7
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418abf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x40], ebp
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x418ae0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0xa6c]
imul ecx, ecx, 0x16
lea edx, [ecx + ebx + 0xc]
mov dword [esi + 0x1430], edx
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x34
ret