Function at 0x4070b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x58c768
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
lea eax, [esp + 0x20]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x40], ebx
mov dword [esp + 0x1c], esp
push ecx
mov ecx, 0x5aabfc
call fcn.00481430
push ecx
mov byte [esp + 0x44], 1
mov edx, esp
mov dword [esp + 0x24], esp
push edx
mov ecx, 0x5aac04
call fcn.00481430
mov byte [esp + 0x44], 2
mov eax, dword [esp + 0x4c]
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x2c], esp
mov esi, esp
call fcn.00481090
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x48], bl
call fcn.00407340
mov edx, dword [0x5f7780]
mov eax, dword [edx + 0xc]
mov ecx, 0x5f7780
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x40], esi
mov byte [esp + 0x38], 3
mov edx, dword [0x5f7780]
mov eax, dword [edx + 0xc]
mov ecx, 0x5f7780
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x38], 4
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
xor ebp, ebp
cmp ecx, ebx
je 0x40728e
mov edx, eax
sub edx, ecx
sar edx, 2
cmp ebp, edx
jae 0x40728e
mov edi, dword [esi - 8]
mov edx, 1
sub edx, dword [esi - 4]
sub edi, 0x104
or edx, edi
jge 0x4071c7
mov ecx, 0x104
lea eax, [esp + 0x40]
call fcn.00481530
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x40]
cmp ecx, ebx
je 0x4071d4
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x4071dd
call fcn.00565fa7
mov ecx, dword [esp + 0x24]
mov ecx, dword [ecx + ebp*4]
push esi
push 0x5aac08
push ecx
call fcn.00564dd1
add esp, 0xc
cmp esi, ebx
jne 0x4071f7
xor ecx, ecx
jmp 0x407211
mov ecx, esi
lea edi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x407200
sub ecx, edi
sar ecx, 1
js 0x407284
cmp ecx, dword [esi - 8]
jg 0x407284
mov dword [esi - 0xc], ecx
mov word [esi + ecx*2], bx
mov ecx, dword [esp + 0x24]
cmp eax, 1
mov eax, dword [esp + 0x28]
jne 0x40727c
cmp ecx, ebx
jne 0x407232
xor edx, edx
jmp 0x407239
mov edx, eax
sub edx, ecx
sar edx, 2
lea edi, [ebp + 1]
cmp edi, edx
jae 0x40727c
cmp ecx, ebx
je 0x40724d
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x407256
call fcn.00565fa7
mov ecx, dword [esp + 0x24]
lea eax, [ecx + ebp*4 + 4]
lea edi, [esp + 0x14]
call fcn.00480f90
mov ecx, dword [esp + 0x44]
mov ebx, edi
lea eax, [esp + 0x40]
call fcn.00407650
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
xor ebx, ebx
add ebp, 2
jmp 0x407181
push 0x80070057
call fcn.00473d10
mov byte [esp + 0x38], 3
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 0x4072b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x38], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4072d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x38], 0xffffffff
mov esi, dword [esp + 0x24]
cmp esi, ebx
je 0x407322
mov eax, dword [esp + 0x28]
cmp esi, eax
mov edi, eax
je 0x407319
lea ecx, [ecx]
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40730e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x4072f0
mov esi, dword [esp + 0x24]
push esi
call fcn.00563626
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8