Function at 0x404af0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x456630
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 0x404bac
mov eax, esi
cdq
and edx, 0x3ff
add eax, edx
push 2
sar eax, 0xa
push 0x45e958
lea ecx, [esp + 0x24]
mov esi, eax
call fcn.00402b60
cmp esi, 0x2710
jl 0x404bac
mov eax, esi
cdq
and edx, 0x3ff
add eax, edx
push 3
sar eax, 0xa
push 0x45e95c
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 0x404bda
mov ecx, 0x45e904
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 0x404ced
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 0x404c59
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 0x404cc7
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x404cb5
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x404cb5
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 0x404ca8
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 0x404cc7
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 0x404ce5
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
test ebp, ebp
jg 0x404c10
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 0x404d42
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 0x404d63
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 0x404d8b
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