Function at 0x408fd0
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4371c1
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push esi
push edi
mov eax, dword [0x446d00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x54], edi
lea eax, [edi + 0xb0]
mov ecx, eax
mov dword [ebp - 0x50], eax
call fcn.00418c40
push 0
push str.negymeg.inf
call fcn.0042775e
movsd xmm0, qword [0x438440]
push 0x24
mov dword [ebp - 0x4c], eax
mov dword [edi + 0xd4], 0
mov dword [edi + 0xa8], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x88], 0
mov dword [edi + 0x80], 0
mov dword [edi + 0x84], 0
mov dword [edi + 0x90], 0
mov dword [edi + 0x94], 0
mov dword [edi + 0x98], 0
mov dword [edi + 0xe4], 0
movsd qword [edi + 0xe8], xmm0
call fcn.00419250
add esp, 0xc
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x40918e
push 0
push str.intro.pcx
mov ecx, eax
call fcn.0040eb60
mov esi, eax
jmp 0x409190
xor esi, esi
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
push eax
push str.intro.pcx
mov dword [ebp - 0x20], 0
call fcn.004104c0
push dword [ebp - 0x20]
push esi
call fcn.0040f370
push 0x24
call fcn.00419250
add esp, 0x14
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x4091e0
push 0
push str.hisco1.pcx
mov ecx, eax
call fcn.0040eb60
mov dword [ebp - 0x10], eax
jmp 0x4091e7
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
push eax
push str.hisco1.pcx
mov dword [ebp - 0x3c], 0
call fcn.004104c0
push 0x10
call fcn.00419250
add esp, 0xc
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x40922c
push str.hisco1.abc
mov ecx, eax
call fcn.004012e0
mov dword [ebp - 0x14], eax
jmp 0x409233
mov dword [ebp - 0x14], 0
push 0x24
mov dword [ebp - 4], 0xffffffff
call fcn.00419250
add esp, 4
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], 3
test eax, eax
je 0x409265
push 0
push str.hisco2.pcx
mov ecx, eax
call fcn.0040eb60
mov dword [ebp - 0x40], eax
jmp 0x40926c
mov dword [ebp - 0x40], 0
lea eax, [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
push eax
push str.hisco2.pcx
mov dword [ebp - 0x48], 0
call fcn.004104c0
push 0x10
call fcn.00419250
add esp, 0xc
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], 4
test eax, eax
je 0x4092b1
push str.hisco2.abc
mov ecx, eax
call fcn.004012e0
mov dword [ebp - 0x44], eax
jmp 0x4092b8
mov dword [ebp - 0x44], 0
push 0x24
mov dword [ebp - 4], 0xffffffff
call fcn.00419250
add esp, 4
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 5
test eax, eax
je 0x4092ea
push 0
push str.mainmenu.pcx
mov ecx, eax
call fcn.0040eb60
mov dword [ebp - 0x24], eax
jmp 0x4092f1
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
push eax
push str.mainmenu.pcx
mov dword [ebp - 0x2c], 0
call fcn.004104c0
lea eax, [edi + 0xc]
push eax
push str.mainmenu.pcx
call fcn.004104c0
push 0x10
call fcn.00419250
add esp, 0x14
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 6
test eax, eax
je 0x409344
push str.mainmenu.abc
mov ecx, eax
call fcn.004012e0
mov dword [ebp - 0x28], eax
jmp 0x40934b
mov dword [ebp - 0x28], 0
push 0x24
mov dword [ebp - 4], 0xffffffff
call fcn.00419250
add esp, 4
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 7
test eax, eax
je 0x40937d
push 0
push str.utomenu.pcx
mov ecx, eax
call fcn.0040eb60
mov dword [ebp - 0x30], eax
jmp 0x409384
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
push eax
push str.utomenu.pcx
mov dword [ebp - 0x38], 0
call fcn.004104c0
push 0x10
call fcn.00419250
add esp, 0xc
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 8
test eax, eax
je 0x4093c9
push str.utomenu.abc
mov ecx, eax
call fcn.004012e0
mov dword [ebp - 0x34], eax
jmp 0x4093d0
mov dword [ebp - 0x34], 0
push 0x24
mov dword [ebp - 4], 0xffffffff
call fcn.00419250
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 9
test eax, eax
je 0x4093ff
push 0
push str.oreg.pcx
mov ecx, eax
call fcn.0040eb60
jmp 0x409401
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push str.oreg.pcx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], 0
call fcn.004104c0
push 0x10
call fcn.00419250
add esp, 0xc
mov dword [ebp - 0x58], eax
mov dword [ebp - 4], 0xa
test eax, eax
je 0x409448
push str.oreg.abc
mov ecx, eax
call fcn.004012e0
mov esi, eax
jmp 0x40944a
xor esi, esi
push 0x24
mov dword [ebp - 4], 0xffffffff
call fcn.00419250
add esp, 4
mov dword [ebp - 0x58], eax
mov dword [ebp - 4], 0xb
test eax, eax
je 0x40947c
push 0xc8
push 0x140
mov ecx, eax
call fcn.0040ea70
jmp 0x40947e
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0xa0], eax
test eax, eax
jne 0x40949e
push eax
push eax
push str.memory
call fcn.00406360
add esp, 0xc
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov dword [edi], eax
mov eax, dword [ebp - 0x28]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x30]
mov dword [edi + 0x40], eax
mov eax, dword [ebp - 0x34]
mov dword [edi + 0x44], eax
mov eax, dword [ebp - 0x38]
mov dword [edi + 0x48], eax
mov eax, dword [ebp - 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0x3c]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], edx
mov dword [edi + 0x28], edx
mov edx, dword [ebp - 0x10]
mov dword [edi + 0x78], eax
mov eax, dword [ebp - 0x40]
mov dword [edi + 0x70], edx
mov edx, dword [ebp - 0x14]
mov dword [edi + 0x64], eax
mov eax, dword [ebp - 0x44]
mov dword [edi + 0x74], edx
mov edx, dword [ebp - 0x18]
mov dword [edi + 0x68], eax
mov eax, dword [ebp - 0x48]
push 0x24
mov dword [edi + 0x20], esi
mov dword [edi + 0x24], ecx
mov dword [edi + 0x2c], esi
mov dword [edi + 0x30], ecx
mov dword [edi + 0x6c], eax
mov dword [edi + 0x4c], edx
mov dword [edi + 0x50], esi
mov dword [edi + 0x54], ecx
mov dword [edi + 0x58], edx
mov dword [edi + 0x5c], esi
mov dword [edi + 0x60], ecx
mov dword [edi + 0x34], edx
mov dword [edi + 0x38], esi
mov dword [edi + 0x3c], ecx
mov dword [edi + 0x7c], edx
call fcn.00419250
add esp, 4
mov dword [ebp - 0x58], eax
mov dword [ebp - 4], 0xc
test eax, eax
je 0x409555
push 0
push str.setsimot.pcx
mov ecx, eax
call fcn.0040eb60
jmp 0x409557
xor eax, eax
push 0x24
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0x88], eax
call fcn.00419250
add esp, 4
mov dword [ebp - 0x58], eax
mov dword [ebp - 4], 0xd
test eax, eax
je 0x40958c
push 0
push str.gomb.pcx
mov ecx, eax
call fcn.0040eb60
jmp 0x40958e
xor eax, eax
push 0
push 0
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0x98], eax
call fcn.0040f300
movzx eax, al
push eax
push dword [edi + 0x98]
call fcn.004151b0
push 0x24
call fcn.00419250
add esp, 0xc
mov dword [ebp - 0x58], eax
mov dword [ebp - 4], 0xe
test eax, eax
je 0x4095dd
push 0
push str.lecbal.pcx
mov ecx, eax
call fcn.0040eb60
jmp 0x4095df
xor eax, eax
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0x90], eax
call fcn.0040f2e0
test al, 1
jne 0x409608
push 0
push 0
push str.lec_xsize_paros_
call fcn.004060d0
add esp, 0xc
push 0x24
call fcn.00419250
add esp, 4
mov dword [ebp - 0x58], eax
mov dword [ebp - 4], 0xf
test eax, eax
je 0x409630
push 0
push str.lecjobb.pcx
mov ecx, eax
call fcn.0040eb60
jmp 0x409632
xor eax, eax
mov ecx, dword [edi + 0x88]
push 0
push 0
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0x94], eax
call fcn.0040f300
mov byte [edi + 0x8c], al
mov eax, dword [ebp - 0x1c]
push 0x24
mov dword [edi + 0x80], esi
mov dword [edi + 0x84], eax
call fcn.00419250
add esp, 4
mov dword [ebp - 0x58], eax
mov dword [ebp - 4], 0x10
test eax, eax
je 0x40968e
push 0xc8
push 0x140
mov ecx, eax
call fcn.0040ea70
jmp 0x409690
xor eax, eax
push 0xcd140
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0x9c], eax
call fcn.0041928e
add esp, 4
mov dword [edi + 0xa4], eax
cmp dword [edi + 0x9c], 0
je 0x4096bd
test eax, eax
jne 0x4096ce
push 0
push 0
push str.memory
call fcn.00406360
add esp, 0xc
push 0x54
call fcn.00419250
add esp, 4
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x4c], 0
jne 0x4096ff
mov dword [ebp - 4], 0x11
test eax, eax
je 0x40971d
push 0x5dc
push 0x1c11
mov ecx, eax
call fcn.00413870
jmp 0x40971f
mov dword [ebp - 4], 0x12
test eax, eax
je 0x40971d
push 0xbb8
push 0x3822
mov ecx, eax
call fcn.00413870
jmp 0x40971f
xor eax, eax
mov dword [ebp - 4], 0xffffffff
push 0x70
mov dword [edi + 0xd4], eax
call fcn.00419250
add esp, 4
mov dword [ebp - 0x58], eax
mov dword [ebp - 4], 0x13
test eax, eax
je 0x409752
push str.leir1.lei
mov ecx, eax
call fcn.00409c20
jmp 0x409754
xor eax, eax
push 0x447b00
push 0x447afc
push 0
push 0x439050
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0xa8], eax
mov dword [edi + 0xac], 0
mov dword [edi + 0xd0], 0
call fcn.00416970
movsd xmm0, qword [0x4478a8]
add esp, 0x10
movsd xmm1, qword [0x447bb0]
sub esp, 8
comisd xmm0, xmm1
mov ecx, dword [0x447afc]
jbe 0x4097b4
movsd qword [esp], xmm0
jmp 0x4097b9
movsd qword [esp], xmm1
call fcn.00416c00
lea esi, [edi + 0xcc]
add edi, 0xc8
push esi
push edi
push dword [0x447afc]
lea eax, [ebp - 0x6c]
push eax
call fcn.0040bde0
mov ecx, dword [esi]
add esp, 0x10
movups xmm0, xmmword [eax]
mov eax, dword [ebp - 0x50]
movups xmmword [eax], xmm0
call fcn.0040bc70
mov ecx, dword [edi]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movsd qword [ebp - 0x5c], xmm0
call fcn.0040bc70
movsd xmm1, qword [ebp - 0x5c]
sub esp, 0x10
mov esi, dword [ebp - 0x54]
mov ecx, esi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movsd qword [esp + 8], xmm1
movsd qword [esp], xmm0
call fcn.00409990
mov byte [esi + 0xd8], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret