Function at 0x413400
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x70
mov esi, esp
mov dword [esi + 0x58], ebp
mov dword [esi + 0x5c], esp
mov dword [esi + 0x68], 0xffffffff
mov dword [esi + 0x64], 0x413f20
mov edx, dword [ebp + 8]
lea eax, [esi + 0x60]
mov ecx, dword fs:[0]
mov dword [esi + 0x60], ecx
mov dword fs:[0], eax
lea eax, [edx + 8]
mov dword [esi + 8], edx
mov dword [esi + 0xc], 0x482820
mov dword [esi + 0x20], 0x534d34
mov dword [esi + 0x24], 4
mov dword [esi + 0x30], 0
lea ecx, [edx + 0x14]
mov dword [esi + 0x68], 0
mov dword [esi + 0x10], eax
mov dword [esi + 0x3c], eax
lea eax, [esi + 8]
mov dword [esi + 0x14], 0x408e80
mov dword [esi + 0x18], ecx
mov dword [esi + 4], ecx
mov dword [esi + 0x1c], 0x421a80
mov dword [esi + 0x28], eax
call 0x413489
pop eax
mov dword [esi + 0x2c], 3
mov dword [esi + 0x4c], eax
lea eax, [esi + 0x20]
push eax
call fcn.0045c790
add esp, 4
cmp byte [0x59602c], 3
jne 0x4134b5
mov eax, dword [esi + 4]
cmp byte [eax], 1
je 0x41396b
push dword [esi + 0x3c]
lea eax, [esi + 8]
push eax
call fcn.0047a0b0
add esp, 8
mov eax, dword [esi + 0x10]
mov edi, dword [esi + 8]
mov ebx, dword [esi + 0xc]
cmp dword [0x596028], eax
jne 0x4134ed
push eax
push edi
push dword [0x596020]
call fcn.005176b4
add esp, 0xc
test eax, eax
je 0x413751
test ebx, ebx
je 0x4134fd
push 1
push ebx
push edi
call fcn.00421c20
add esp, 0xc
push 4
push str.tips
call fcn.0041f630
add esp, 8
cmp dl, 2
je 0x413996
and dl, 1
mov dword [esi + 0x20], eax
mov dword [esi + 0x68], 0xd
mov byte [esi + 0x24], dl
push dword [esi + 0x3c]
lea eax, [esi + 8]
push eax
call fcn.0047a0b0
add esp, 8
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov dword [esi + 0x68], 0xe
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x10]
push eax
mov dword [esi + 0x50], ecx
push ecx
lea eax, [esi + 0x20]
push eax
call fcn.004520a0
add esp, 0xc
mov eax, dword [esi + 0x48]
test eax, eax
je 0x41356d
push 1
push eax
push dword [esi + 0x50]
call fcn.00421c20
add esp, 0xc
lea eax, [esi + 0x20]
mov dword [esi + 0x68], 0xc
push eax
call fcn.0044b930
add esp, 4
mov eax, dword [esi + 0x20]
lock dec dword [eax]
jne 0x41359b
lea eax, [esi + 0x20]
mov dword [esi + 0x68], 0
push eax
call fcn.0040b9f0
add esp, 4
mov dword [esi + 0x68], 0
mov eax, dword [esi + 4]
movzx eax, byte [eax]
mov byte [esi + 0x48], al
push dword [esi + 0x3c]
lea eax, [esi + 8]
push eax
call fcn.0047a0b0
add esp, 8
mov eax, dword [ebp + 8]
movsd xmm0, qword [esi + 8]
movsd xmm1, qword [eax]
mov eax, dword [esi + 0x10]
movsd qword [esi + 0x20], xmm0
mov dword [esi + 0x28], eax
mov eax, dword [0x596024]
test eax, eax
je 0x4135f5
push 1
push eax
push dword [0x596020]
movsd qword [esi + 0x50], xmm1
call fcn.00421c20
movsd xmm1, qword [esi + 0x50]
add esp, 0xc
mov eax, dword [esi + 0x28]
movsd qword [0x596018], xmm1
movsd xmm0, qword [esi + 0x20]
mov dword [0x596028], eax
movzx eax, byte [esi + 0x48]
movsd qword [0x596020], xmm0
mov byte [0x59602c], al
mov eax, dword [esi + 4]
movzx eax, byte [eax]
dec eax
cmp eax, 9
ja 0x41395f
mov ecx, dword [esi + 0x4c]
add ecx, dword [eax*4 + 0x413c00]
jmp ecx
test ebx, ebx
je 0x4135a2
push 1
push ebx
push edi
call fcn.00421c20
add esp, 0xc
jmp 0x4135a2
mov dword [esi + 0x68], 0
call fcn.0044b6e0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x413985
push 1
push eax
mov eax, dword [esi + 0x3c]
push dword [eax]
call fcn.00421c20
add esp, 0xc
mov eax, dword [esi + 0x60]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x534d58
push 0x2b
push 0x534b54
call fcn.0051ee20
add esp, 0xc
jmp 0x413a18
ud2