Function at 0x404b20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4565f0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46f1b0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
mov edx, dword [0x471864]
mov esi, dword [eax + 0xec]
mov eax, dword [edx + 0xc]
mov ecx, 0x471864
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], 0
mov edx, dword [0x471864]
mov eax, dword [edx + 0xc]
mov ecx, 0x471864
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
cmp esi, 0x400
mov byte [esp + 0x30], 1
jl 0x404bdc
mov eax, esi
cdq
and edx, 0x3ff
add eax, edx
push 2
sar eax, 0xa
push 0x45e968
lea ecx, [esp + 0x24]
mov esi, eax
call fcn.00402b60
cmp esi, 0x2710
jl 0x404bdc
mov eax, esi
cdq
and edx, 0x3ff
add eax, edx
push 3
sar eax, 0xa
push 0x45e96c
lea ecx, [esp + 0x24]
mov esi, eax
call fcn.00402b60
mov edx, dword [0x471864]
mov eax, dword [edx + 0xc]
mov ecx, 0x471864
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
cmp esi, 0x3e8
mov byte [esp + 0x30], 2
mov ecx, str._03d
jge 0x404c0a
mov ecx, 0x45e914
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov ebp, edx
shr ebp, 0x1f
add ebp, edx
mov edx, ebp
imul edx, edx, 0x3e8
sub esi, edx
push esi
push ecx
lea edi, [esp + 0x1c]
call fcn.004056f0
mov ebx, dword [esp + 0x1c]
add esp, 8
test ebp, ebp
jle 0x404d1d
nop
mov eax, 0x10624dd3
imul ebp
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x471864]
mov ecx, eax
imul ecx, ecx, 0x3e8
mov esi, ebp
sub esi, ecx
mov ebp, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x471864
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x30], 3
mov eax, str._03d__s
test ebp, ebp
jg 0x404c89
mov eax, str._d__s
push ebx
push esi
push eax
lea edi, [esp + 0x2c]
call fcn.004056f0
mov eax, dword [esp + 0x2c]
lea esi, [eax - 0x10]
lea edi, [ebx - 0x10]
add esp, 0xc
cmp esi, edi
je 0x404cf7
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x404ce5
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x404ce5
push esi
call fcn.00403010
add esp, 4
mov dword [esp + 0x24], eax
or edx, 0xffffffff
lock xadd dword [ebx], edx
dec edx
test edx, edx
jg 0x404cd8
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov ebx, dword [esp + 0x24]
add ebx, 0x10
mov dword [esp + 0x14], ebx
jmp 0x404cf7
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00402b60
mov ebx, dword [esp + 0x14]
mov byte [esp + 0x30], 2
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404d15
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
test ebp, ebp
jg 0x404c40
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402d80
mov esi, dword [esp + 0x1c]
mov eax, dword [esi - 0xc]
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.00402a40
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x18]
add ecx, 0xf0
push edx
call fcn.00402d80
lea eax, [ebx - 0x10]
mov byte [esp + 0x30], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404d72
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x30], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404d93
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404dbb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4