Function at 0x405ed0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ce4f6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], edi
call fcn.004318f0
lea ecx, [esp + 0x20]
mov dword [esp + 0x16c], edi
call fcn.004318f0
lea ecx, [esp + 0x28]
mov byte [esp + 0x16c], 1
call fcn.004318f0
lea ecx, [esp + 0x30]
mov byte [esp + 0x16c], 2
call fcn.004318f0
mov eax, dword [esi + 0x664]
push eax
mov byte [esp + 0x170], 3
call fcn.00488dee
mov ecx, dword [ebp + 8]
xor eax, ecx
xor eax, 0x125a95cc
xor edx, edx
mov edi, 0x3b95
div edi
mov edi, dword [ebp + 0xc]
lea eax, [esp + 0x64]
mov edx, dword [edx*4 + 0x4f4168]
push edx
push ecx
push edi
push str.lid_dscore1_dscore2_u
push eax
call fcn.004887ad
add esp, 0x18
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x54]
call fcn.00431b00
push str.submit_score
lea ecx, [esp + 0x44]
mov byte [esp + 0x170], 4
mov dword [esp + 0x10], 1
call fcn.00431b00
lea edx, [esp + 0x18]
push edx
push 0x504be4
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x4c]
push ecx
mov ebx, 3
mov ecx, esi
mov dword [esp + 0x17c], 5
mov dword [esp + 0x1c], ebx
call fcn.00405ab0
test al, al
je 0x40609a
push str.TODAY_RANK:
lea ecx, [esp + 0x5c]
call fcn.00431b00
mov ebx, 7
push str.MONTH_RANK:
lea ecx, [esp + 0x3c]
mov dword [esp + 0x170], 6
mov dword [esp + 0x10], ebx
call fcn.00431b00
push str.ALL_TIME_RANK:
lea ecx, [esp + 0x4c]
mov dword [esp + 0x170], ebx
mov dword [esp + 0x10], 0xf
call fcn.00431b00
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x4c]
lea ebx, [esp + 0x18]
mov dword [esp + 0x170], 8
mov dword [esp + 0x10], 0x1f
mov dword [esp + 0x18], edx
call fcn.00405dd0
add esp, 4
test al, al
je 0x406096
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00405dd0
add esp, 4
test al, al
je 0x406096
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x5c]
call fcn.00405dd0
add esp, 4
test al, al
je 0x406096
mov ebx, dword [esp + 0xc]
mov byte [esp + 0x13], 1
jmp 0x40609f
mov ebx, dword [esp + 0xc]
mov byte [esp + 0x13], 0
test bl, 0x10
mov dword [esp + 0x16c], 7
je 0x4060bf
and ebx, 0xffffffef
lea ecx, [esp + 0x48]
mov dword [esp + 0xc], ebx
call fcn.00431a00
test bl, 8
mov dword [esp + 0x16c], 6
je 0x4060df
and ebx, 0xfffffff7
lea ecx, [esp + 0x38]
mov dword [esp + 0xc], ebx
call fcn.00431a00
test bl, 4
mov dword [esp + 0x16c], 5
je 0x4060ff
and ebx, 0xfffffffb
lea ecx, [esp + 0x58]
mov dword [esp + 0xc], ebx
call fcn.00431a00
test bl, 2
mov dword [esp + 0x16c], 4
je 0x40611f
and ebx, 0xfffffffd
lea ecx, [esp + 0x40]
mov dword [esp + 0xc], ebx
call fcn.00431a00
test bl, 1
mov dword [esp + 0x16c], 3
je 0x406138
lea ecx, [esp + 0x50]
call fcn.00431a00
mov al, byte [esp + 0x13]
test al, al
je 0x4061c8
lea ebx, [esi + 0x680]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x7f4], edi
jne 0x4061a2
mov eax, dword [esp + 0x24]
push eax
call fcn.00488dee
mov ecx, dword [esp + 0x30]
push ecx
mov dword [esi + 0x80c], eax
call fcn.00488dee
mov edx, dword [esp + 0x3c]
push edx
mov dword [esi + 0x810], eax
call fcn.00488dee
mov dword [esi + 0x814], eax
mov eax, dword [esi + 0x69c]
add esp, 0xc
cmp word [eax - 4], 0
setne cl
mov byte [esi + 0x808], cl
jmp 0x4061c1
fld dword [0x4d6344]
fld dword [esi + 0x66c]
fucompp
fnstsw ax
test ah, 0x44
jp 0x4061c1
mov dword [esi + 0x66c], 0x3dcccccd
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x30]
mov byte [esp + 0x16c], 2
call fcn.00431a00
lea ecx, [esp + 0x28]
mov byte [esp + 0x16c], 1
call fcn.00431a00
lea ecx, [esp + 0x20]
mov byte [esp + 0x16c], 0
call fcn.00431a00
lea ecx, [esp + 0x18]
mov dword [esp + 0x16c], 0xffffffff
call fcn.00431a00
mov ecx, dword [esp + 0x164]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8