Function at 0x421020
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x475290
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x24]
xor ebp, ebp
mov word [esi + 0x70], bp
mov eax, dword [edi + 0x50]
mov word [esi + 0x6e], ax
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [edi + 0x30]
sub ecx, dword [esi + 0x68]
add eax, ecx
cmp word [esi + 0x72], bp
mov dword [esi + 0x78], eax
je 0x421295
mov edi, dword [esp + 0x30]
cmp edi, ebp
mov dx, word [esi + 0x6e]
mov word [esp + 0x10], dx
mov dword [esp + 0x18], ebp
je 0x42109e
mov eax, dword [edi]
push ebp
push ebp
mov ecx, edi
call dword [eax + 4]
movzx eax, word [esi + 0x72]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 8]
mov ecx, dword [0x497930]
mov dword [esp + 0x18], ecx
cmp word [esi + 0x72], bp
push ebx
mov dword [esp + 0x18], ebp
jbe 0x4211eb
lea ecx, [ecx]
test ebp, ebp
jl 0x42128f
cmp ebp, dword [esi + 0x34]
jge 0x42128f
mov edx, dword [esi + 0x30]
mov edi, dword [edx + ebp*4]
lea eax, [edx + ebp*4]
call fcn.00466173
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x10], ebx
mov al, byte [esi + 0x40]
test al, al
mov dword [esp + 0x2c], 0
je 0x42112e
lea eax, [esp + 0x20]
push eax
mov ecx, edi
call fcn.0041e7f0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 1
call fcn.004098e0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42112a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ebx, dword [esp + 0x10]
cmp byte [esi + 0x40], 1
mov eax, edi
jne 0x421148
test edi, edi
jne 0x42113d
mov eax, dword [esi + 0x20]
push 0
push eax
call fcn.0041f550
add esp, 8
mov eax, dword [esi + 0x24]
push eax
mov ecx, edi
call fcn.0041e480
mov ecx, dword [esi + 0x74]
add ecx, eax
mov al, byte [esi + 0x40]
test al, al
mov dword [esi + 0x74], ecx
je 0x42116a
push ebx
mov ecx, edi
call fcn.0041e6c0
mov eax, dword [esi + 0x24]
movzx edx, word [esp + 0x14]
mov ecx, dword [eax + 0x50]
cmp ecx, edx
je 0x421196
test ebp, ebp
mov word [esi + 0x70], 1
mov eax, dword [eax + 0x50]
mov dword [esp + 0x14], eax
jne 0x42119a
mov cx, ax
mov dword [esi + 0x78], ebp
mov word [esi + 0x6e], cx
jmp 0x42119a
inc word [esi + 0x70]
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x4211b8
mov edi, dword [esp + 0x1c]
mov eax, ebp
cdq
idiv edi
test edx, edx
jne 0x4211b8
mov edx, dword [ecx]
push edi
call dword [edx]
test al, al
je 0x42120a
lea eax, [ebx - 0x10]
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4211da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
movzx eax, word [esi + 0x72]
inc ebp
cmp ebp, eax
jl 0x4210b0
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4211f6
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x421294
push eax
mov ecx, esi
call fcn.004205c0
mov al, byte [esp + 0x38]
test al, al
je 0x42125c
mov ecx, dword [esi + 0x24]
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x42122e
mov dl, byte [ecx + 0x4c]
xor eax, eax
test dl, dl
setne al
lea eax, [eax + eax - 1]
test eax, eax
jne 0x421237
mov dword [ecx + 0x30], 0
jmp 0x42123c
call fcn.00421ee0
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x78]
mov edi, dword [esi + 0x68]
mov ecx, dword [ecx + 0x1c]
mov edx, dword [ecx]
add eax, edi
push 0
push eax
call dword [edx + 0x18]
mov dword [esp + 0x18], 0x6a
jmp 0x421264
mov dword [esp + 0x18], 0x69
lea eax, [ebx - 0x10]
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4211e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x4211e7
call fcn.0045ff9d
pop ebx
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x20
ret 8