Function at 0x59d1e0
Capabilities:
Check for time delay via queryperformancecounter
Get memory capacity
Print debug messages
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x8c70
call fcn.0057f249
push ebx
push ebp
push esi
push edi
mov eax, dword [0x8fd16c]
mov ecx, dword [0x8f2d6c]
mov edx, dword [0x8fd160]
mov dword [esp + 0x3c], eax
mov eax, dword [0x8f26ec]
mov dword [esp + 0x10c], ecx
mov ecx, dword [0x8f3074]
mov dword [esp + 0xf0], edx
mov edx, dword [0x8f3078]
mov dword [esp + 0xf8], eax
mov eax, dword [0x8f8154]
mov dword [esp + 0x100], ecx
mov ecx, dword [0x8f26f4]
mov dword [esp + 0x130], edx
mov edx, dword [0x8f26f8]
mov dword [esp + 0x1e8], eax
mov eax, dword [0x8f26fc]
mov dword [esp + 0x138], ecx
mov ecx, dword [0x8f8160]
mov dword [esp + 0x140], edx
mov edx, dword [0x8f8164]
mov dword [esp + 0x148], eax
mov eax, dword [0x8f816c]
mov dword [esp + 0x150], ecx
mov ecx, dword [0x8f8174]
mov dword [esp + 0x194], edx
mov edx, dword [0x8f8178]
mov dword [esp + 0x94], eax
mov eax, dword [0x8f817c]
mov dword [esp + 0x12c], ecx
mov ecx, dword [0x8f8184]
mov dword [esp + 0x11c], edx
mov edx, dword [0x8f26b8]
mov dword [esp + 0x1d8], eax
mov eax, dword [0x8f26b4]
mov dword [esp + 0x124], ecx
mov ecx, dword [0x8f8158]
mov dword [esp + 0x9c], edx
mov edx, dword [0x8fd14c]
mov dword [esp + 0x1e0], eax
mov eax, dword [0x8fd150]
mov dword [esp + 0xa4], ecx
mov ecx, dword [0x8f28ec]
mov dword [esp + 0x134], edx
mov edx, dword [0x8f28f0]
mov dword [esp + 0xac], eax
mov eax, dword [0x8fd174]
mov dword [esp + 0xb4], ecx
mov ecx, dword [0x8fd170]
mov dword [esp + 0x13c], edx
mov edx, dword [0x8fd32c]
mov dword [esp + 0xbc], eax
mov eax, dword [0x8fcbc8]
mov dword [esp + 0x1ec], ecx
mov ecx, dword [0x8fcbcc]
mov dword [esp + 0xc4], edx
mov edx, dword [0x8fcbd0]
mov dword [esp + 0x144], eax
mov eax, dword [0x8fcbbc]
mov ebx, dword [0x8fd168]
mov dword [esp + 0xcc], ecx
mov ecx, dword [0x8fcbc0]
mov dword [esp + 0x1d4], edx
mov edx, dword [0x8fcbc4]
mov dword [esp + 0xd4], eax
mov eax, dword [0x8fd318]
mov dword [esp + 0x14c], ecx
mov ecx, dword [0x8fd31c]
mov dword [esp + 0xdc], edx
mov edx, dword [0x8fd320]
mov dword [esp + 0x1e4], eax
mov eax, dword [0x8fd324]
mov dword [esp + 0xe4], ecx
mov dword [esp + 0x154], edx
mov dword [esp + 0xec], eax
mov ecx, dword [0x8fe334]
fld qword [0x8fcba8]
mov edx, dword [0x8fe338]
fstp qword [esp + 0x158]
mov eax, dword [0x8f28fc]
fld qword [0x8fcbb0]
mov dword [esp + 0x1dc], ecx
fstp qword [esp + 0x168]
mov ecx, dword [0x8fe31c]
mov dword [esp + 0xfc], ecx
movzx ecx, word [0x8fe318]
mov dword [esp + 0x174], ecx
mov dword [esp + 0xf4], edx
mov edx, dword [0x8fe320]
mov dword [esp + 0x164], eax
mov eax, dword [0x8fe324]
mov dword [esp + 0x19c], edx
mov edx, dword [0x8fe330]
mov dword [esp + 0x104], eax
mov eax, dword [0x8fe314]
mov ecx, 8
mov esi, 0x8fe2d4
lea edi, [esp + 0x230]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x8c], edx
mov edx, dword [0x8fe32c]
mov dword [esp + 0x1d0], eax
mov eax, dword [0x8fcba4]
mov ecx, 8
mov esi, 0x8fe2f4
lea edi, [esp + 0x1f0]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x8fe328]
mov dword [esp + 0x114], ecx
mov ecx, dword [0x8fcbb8]
mov dword [esp + 0x190], edx
mov edx, dword [0x8fcbd8]
mov dword [esp + 0x198], eax
mov eax, dword [0x8f2738]
mov dword [esp + 0x90], ecx
mov ecx, dword [0x8f2724]
mov dword [esp + 0x98], edx
mov edx, dword [0x8f2728]
mov dword [esp + 0xa0], eax
mov eax, dword [0x8f2694]
mov dword [esp + 0xa8], ecx
mov ecx, dword [0x8f26bc]
mov dword [esp + 0xb0], edx
mov edx, dword [0x8f26c0]
mov dword [esp + 0xb8], eax
mov eax, dword [0x8fcbdc]
mov dword [esp + 0xc0], ecx
mov ecx, dword [0x8fcd00]
mov dword [esp + 0xc8], edx
mov edx, dword [0x8fe33c]
mov dword [esp + 0xd0], eax
mov eax, dword [0x8fe340]
mov dword [esp + 0xd8], ecx
mov ecx, dword [0x8fe344]
mov dword [esp + 0xe0], edx
mov edx, dword [0x906348]
mov dword [esp + 0xe8], eax
mov eax, dword [0x90634c]
mov dword [esp + 0x4c], ecx
mov ecx, dword [0x906350]
mov dword [esp + 0x58], edx
mov edx, dword [0x906354]
mov dword [esp + 0x5c], eax
mov eax, dword [0x906358]
mov dword [esp + 0x178], ecx
mov ecx, dword [0x90635c]
mov dword [esp + 0x17c], edx
mov edx, dword [0x906360]
mov dword [esp + 0x180], eax
mov eax, dword [0x906364]
mov dword [esp + 0x184], ecx
lea ecx, [esp + 0xc80]
mov dword [esp + 0x188], edx
mov dword [esp + 0x18c], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x50], 0x8fe348
mov dword [esp + 0x24], 0x8000
cld
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov ecx, dword [esp + 0x24]
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x90636c]
mov edx, dword [0x906368]
mov ecx, dword [0x906370]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [esp + 0x6c], eax
mov eax, dword [0x906378]
mov dword [esp + 0x70], ecx
mov ecx, dword [0x90637c]
mov dword [esp + 0x108], edx
mov edx, dword [0x906374]
mov dword [esp + 0x78], eax
mov eax, dword [0x8fd158]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x74], edx
mov edx, dword [0x906380]
mov dword [esp + 0x54], eax
mov eax, dword [0x8f2d58]
mov dword [esp + 0x80], edx
mov edx, dword [0x8f2d54]
mov ecx, 0x148
mov esi, 0x8f2170
lea edi, [esp + 0x760]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x8fd15c]
mov esi, dword [0x8fd154]
mov dword [esp + 0x118], eax
mov eax, dword [0x8fccfc]
mov dword [esp + 0x24], ecx
mov ecx, dword [0x8f2d5c]
mov dword [esp + 0x110], edx
mov edx, dword [0x8f2d50]
mov dword [esp + 0x60], eax
mov dword [esp + 0x120], ecx
mov ecx, dword [0x8f2698]
mov dword [esp + 0x128], edx
mov edx, dword [0x8f269c]
push 0x8f2d70
lea eax, [esp + 0x254]
push eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x28], edx
call ebp
push 0x8f2e74
lea ecx, [esp + 0x45c]
push ecx
call ebp
push 0x8f307c
lea edx, [esp + 0x35c]
push edx
call ebp
push 0x8f2f74
lea eax, [esp + 0x564]
push eax
call ebp
mov dword [esp + 0x50], 0x14218
cld
mov al, 0
mov ecx, dword [esp + 0x50]
mov edi, 0x8f2170
rep stosb byte es:[edi], al
lea ecx, [esp + 0x250]
push ecx
push 0x8f2d70
call ebp
lea edx, [esp + 0x458]
push edx
push 0x8f2e74
call ebp
lea eax, [esp + 0x358]
push eax
push 0x8f307c
call ebp
lea ecx, [esp + 0x560]
push ecx
push 0x8f2f74
call ebp
mov edx, dword [esp + 0x10c]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0xf0]
mov dword [0x8f2d6c], edx
mov dword [0x8fd168], ebx
mov dword [0x8fd16c], eax
mov dword [0x8fd160], ecx
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xf8]
mov dword [0x8fd158], edx
mov edx, dword [esp + 0x100]
mov dword [0x8fd15c], eax
mov eax, dword [esp + 0x130]
mov dword [0x8f26ec], ecx
mov ecx, dword [esp + 0x138]
mov dword [0x8f3074], edx
mov edx, dword [esp + 0x140]
mov dword [0x8f3078], eax
mov eax, dword [esp + 0x148]
mov dword [0x8f26f4], ecx
mov ecx, dword [esp + 0x150]
mov dword [0x8f26f8], edx
mov edx, dword [esp + 0x194]
mov dword [0x8f26fc], eax
mov eax, dword [esp + 0x94]
mov dword [0x8f8160], ecx
mov ecx, dword [esp + 0x12c]
mov dword [0x8f8164], edx
mov edx, dword [esp + 0x9c]
mov dword [0x8f816c], eax
mov eax, dword [esp + 0x1e0]
mov dword [0x8f8174], ecx
mov ecx, dword [esp + 0xa4]
mov dword [0x8f26b8], edx
mov edx, dword [esp + 0x134]
mov dword [0x8f26b4], eax
mov eax, dword [esp + 0xac]
mov dword [0x8f8158], ecx
mov ecx, dword [esp + 0x1e8]
mov dword [0x8fd14c], edx
mov edx, dword [esp + 0xb4]
mov dword [0x8fd150], eax
mov eax, dword [esp + 0x13c]
mov dword [0x8f8154], ecx
mov ecx, dword [esp + 0xbc]
mov dword [0x8f28ec], edx
mov edx, dword [esp + 0x1ec]
mov dword [0x8f28f0], eax
mov eax, dword [esp + 0xc4]
mov dword [0x8fd174], ecx
mov ecx, dword [esp + 0x144]
mov dword [0x8fd170], edx
mov edx, dword [esp + 0xcc]
mov dword [0x8fd32c], eax
mov eax, dword [esp + 0x1d4]
mov dword [0x8fcbc8], ecx
mov ecx, dword [esp + 0xd4]
mov dword [0x8fcbcc], edx
mov edx, dword [esp + 0x14c]
mov dword [0x8fcbd0], eax
mov eax, dword [esp + 0xdc]
mov dword [0x8fcbbc], ecx
mov ecx, dword [esp + 0x1e4]
mov dword [0x8fcbc0], edx
mov edx, dword [esp + 0xe4]
mov dword [0x8fcbc4], eax
mov eax, dword [esp + 0x154]
mov dword [0x8fd318], ecx
mov ecx, dword [esp + 0xec]
mov dword [0x8fd31c], edx
mov edx, dword [esp + 0x1dc]
mov dword [0x8fd320], eax
mov eax, dword [esp + 0xf4]
mov dword [0x8fd324], ecx
mov ecx, dword [esp + 0x164]
mov dword [0x8fe334], edx
mov edx, dword [esp + 0xfc]
mov dword [0x8fe338], eax
mov eax, dword [esp + 0x19c]
mov dword [0x8f28fc], ecx
mov ecx, dword [esp + 0x104]
mov dword [0x8fe31c], edx
mov dx, word [esp + 0x174]
mov dword [0x8fd154], esi
mov dword [0x8fe320], eax
mov dword [0x8fe324], ecx
mov word [0x8fe318], dx
mov eax, dword [esp + 0x8c]
fld qword [esp + 0x158]
mov edx, dword [esp + 0x114]
mov dword [0x8fe330], eax
mov eax, dword [esp + 0x190]
mov ecx, 8
lea esi, [esp + 0x230]
mov edi, 0x8fe2d4
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
lea esi, [esp + 0x1f0]
mov edi, 0x8fe2f4
rep movsd dword es:[edi], dword [esi]
fstp qword [0x8fcba8]
fld qword [esp + 0x168]
fstp qword [0x8fcbb0]
mov ecx, dword [esp + 0x1d0]
mov dword [0x8fe314], ecx
mov ecx, dword [esp + 0x11c]
mov dword [0x8fe328], edx
mov edx, dword [esp + 0x1d8]
mov dword [0x8fe32c], eax
mov eax, dword [esp + 0x124]
mov dword [0x8f8178], ecx
mov ecx, dword [esp + 0x198]
mov dword [0x8f817c], edx
mov edx, dword [esp + 0x90]
mov dword [0x8f8184], eax
mov eax, dword [esp + 0x98]
mov dword [0x8fcba4], ecx
mov ecx, dword [esp + 0xa0]
mov dword [0x8fcbb8], edx
mov edx, dword [esp + 0xa8]
mov dword [0x8fcbd8], eax
mov eax, dword [esp + 0xb0]
mov dword [0x8f2738], ecx
mov ecx, dword [esp + 0xb8]
mov dword [0x8f2724], edx
mov edx, dword [esp + 0xc0]
mov dword [0x8f2728], eax
mov eax, dword [esp + 0xc8]
mov dword [0x8f2694], ecx
mov ecx, dword [esp + 0xd0]
mov dword [0x8f26bc], edx
mov edx, dword [esp + 0xd8]
mov dword [0x8f26c0], eax
mov eax, dword [esp + 0xe0]
mov dword [0x8fcbdc], ecx
mov ecx, dword [esp + 0xe8]
mov dword [0x8fcd00], edx
mov edx, dword [esp + 0x4c]
mov dword [0x8fe33c], eax
mov eax, dword [esp + 0x58]
mov dword [0x8fe340], ecx
mov ecx, dword [esp + 0x5c]
mov dword [0x8fe344], edx
mov edx, dword [esp + 0x178]
mov dword [0x906348], eax
mov eax, dword [esp + 0x17c]
mov dword [0x90634c], ecx
mov ecx, dword [esp + 0x180]
mov dword [0x906350], edx
mov edx, dword [esp + 0x184]
mov dword [0x906354], eax
mov eax, dword [esp + 0x188]
mov dword [0x906358], ecx
mov ecx, dword [esp + 0x18c]
mov dword [0x90635c], edx
lea edx, [esp + 0xc80]
mov dword [0x906360], eax
mov dword [0x906364], ecx
mov dword [0x8f2718], 0xffffffff
mov dword [esp + 0x58], 0x8fe348
mov dword [esp + 0x4c], edx
mov dword [esp + 0x5c], 0x8000
cld
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x108]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
mov dword [0x906368], eax
mov dword [0x90636c], ecx
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
mov dword [0x906370], edx
mov edx, dword [esp + 0x7c]
mov dword [0x906374], eax
mov eax, dword [esp + 0x80]
mov dword [0x906378], ecx
mov dword [0x90637c], edx
mov edx, dword [esp + 0x118]
mov dword [0x906380], eax
mov eax, dword [esp + 0x120]
mov ecx, 0x148
lea esi, [esp + 0x760]
mov edi, 0x8f2170
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x110]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x8f2d54], ecx
mov ecx, dword [esp + 0x128]
mov dword [0x8f2d58], edx
mov edx, dword [esp + 0x60]
mov dword [0x8f2d5c], eax
mov eax, dword [esp + 0x30]
mov dword [0x8f2d50], ecx
mov ecx, dword [esp + 0x20]
push str.user32
mov dword [0x8fccfc], edx
mov dword [0x8f2698], eax
mov dword [0x8f269c], ecx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x59dc02
push str.UpdateLayeredWindow
push esi
call ebx
push esi
mov dword [0x8fcd04], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp byte [0x8f2f74], 0
jne 0x59dc27
cmp byte [0x8f2e74], 0
je 0x59dc1b
push 0x8f2e74
jmp 0x59dc20
push str.D123987X
push 0x8f2f74
call ebp
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x8f2690], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x8fd150], 0x106
mov dword [0x8f26c8], eax
jl 0x59dd42
push str.Kernel32.dll
call edi
mov esi, eax
test esi, esi
je 0x59dd42
push str.GlobalMemoryStatusEx
push esi
call ebx
mov edx, eax
test edx, edx
je 0x59dd3b
lea eax, [esp + 0x1f0]
mov ebx, 0x40
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], ebx
cld
mov al, 0
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x20]
rep stosb byte es:[edi], al
lea ecx, [esp + 0x1f0]
push ecx
mov dword [esp + 0x1f4], ebx
call edx
fild qword [esp + 0x200]
fld qword [0x879f50]
sub esp, 0x10
fmul st(1), st(0)
fxch st(1)
fstp qword [esp + 8]
fild qword [esp + 0x208]
fmulp st(1)
fstp qword [esp]
push 0x87ba7c
call fcn.0057a2e9
fild qword [esp + 0x214]
add esp, 0xc
lea edx, [esp + 0x668]
fmul qword [0x879f50]
fstp qword [esp]
push str._.2fMB_n
push edx
call fcn.0057a7a3
add esp, 0x10
lea eax, [esp + 0x660]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x200]
mov edx, dword [esp + 0x204]
mov eax, dword [esp + 0x1f8]
mov dword [0x8f2478], ecx
mov ecx, dword [esp + 0x1fc]
mov dword [0x8f247c], edx
mov dword [0x8f2480], eax
mov dword [0x8f2484], ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [0x8f2480]
or edx, dword [0x8f2484]
jne 0x59de0c
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
fild dword [esp + 0x78]
mov ecx, dword [esp + 0x78]
test ecx, ecx
jge 0x59dd71
fadd qword [0x879f40]
fld qword [0x879f50]
mov edx, dword [esp + 0x74]
fmul st(1), st(0)
sub esp, 0x10
test edx, edx
fxch st(1)
fstp qword [esp + 8]
fild dword [esp + 0x84]
jge 0x59dd97
fadd qword [0x879f40]
fmulp st(1)
fstp qword [esp]
push 0x87ba7c
call fcn.0057a2e9
fild dword [esp + 0x8c]
mov eax, dword [esp + 0x8c]
test eax, eax
jge 0x59ddbe
fadd qword [0x879f40]
fmul qword [0x879f50]
add esp, 0xc
lea ecx, [esp + 0x668]
fstp qword [esp]
push str._.2fMB_n
push ecx
call fcn.0057a7a3
add esp, 0x10
lea edx, [esp + 0x660]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
mov dword [0x8f2478], eax
xor eax, eax
mov dword [0x8f247c], eax
mov dword [0x8f2480], ecx
mov dword [0x8f2484], eax
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call ebx
push 1
mov dword [0x8f28d8], eax
call ebx
push 0
mov dword [0x8f28dc], eax
call dword [sym.imp.USER32.dll_GetDC]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov esi, eax
push 0xe
push esi
call edi
push 0xc
push esi
mov dword [esp + 0x28], eax
call edi
mov ecx, dword [esp + 0x20]
imul ecx, eax
push esi
xor edi, edi
push edi
mov dword [0x8f28e0], ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.0057a04b
add esp, 8
push 0x8f28d0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov ecx, dword [0x8f28d0]
or ecx, dword [0x8f28d4]
mov dword [0x8f28cc], 1
jne 0x59de94
mov dword [0x8f28cc], edi
push 8
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.WINMM.dll_timeGetDevCaps]
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
cmp dword [0x8f28cc], edi
mov esi, dword [sym.imp.WINMM.dll_timeGetTime]
je 0x59dfb8
push 0x87ba4c
call fcn.0057a587
add esp, 4
xor ebx, ebx
call esi
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
call esi
mov dword [esp + 0x20], eax
call fcn.0057b270
test eax, eax
jne 0x59df49
lea ecx, [ecx]
cmp edi, 0x3c
je 0x59df49
cmp ebx, 0x3c
je 0x59df49
call esi
sub eax, dword [esp + 0x20]
cmp eax, 0x3e8
jae 0x59df49
lea edx, [esp + 0x60]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x60]
cmp eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x64]
jne 0x59df26
cmp ecx, dword [esp + 0x34]
je 0x59df31
add ebx, 1
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
call esi
cmp eax, dword [esp + 0x24]
je 0x59df40
add edi, 1
mov dword [esp + 0x24], eax
call fcn.0057b270
test eax, eax
je 0x59def0
push ebx
push edi
push 0x87b9f0
call fcn.0057a2e9
push 0x87a214
call fcn.0057a587
add esp, 0x10
cmp edi, ebx
jle 0x59df84
mov eax, dword [esp + 0x28]
push eax
push 0x87b9a0
call fcn.0057a2e9
add esp, 8
mov dword [0x8f28cc], 0
jmp 0x59dfa3
fild qword [0x8f28d0]
sub esp, 8
fdiv qword [0x87aa98]
fstp qword [esp]
push 0x87b954
call fcn.0057a2e9
add esp, 0xc
push 0x87a214
call fcn.0057a587
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
add esp, 4
xor edi, edi
call esi
and eax, 0x7fffffff
push eax
call fcn.0057b031
add esp, 4
push 2
push edi
push edi
push 0x11
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
cmp dword [0x8fe334], edi
mov esi, 3
jne 0x59e059
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
add eax, 0xfffffc5c
cmp eax, 0x12
ja case.0x59dff8.933
movzx ecx, byte [eax + 0x59e5b0]
jmp dword [ecx*4 + 0x59e59c]
mov dword [0x8fe334], 2
mov dword [0x8fe338], 0x3b5
jmp 0x59e059
mov dword [0x8fe334], esi
mov dword [0x8fe338], 0x3b6
jmp 0x59e059
mov dword [0x8fe334], 4
mov dword [0x8fe338], 0x3a8
jmp 0x59e059
mov dword [0x8fe338], 0x3a4
jmp 0x59e04f
mov dword [0x8fe338], edi
mov dword [0x8fe334], 1
cmp dword [0x8fd318], edi
jne 0x59e592
push 0x87b934
call fcn.0057a587
add esp, 4
push edi
push 0x8f2f74
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x59e0b3
cmp dword [0x8f28ec], edi
jne 0x59e0ac
push 0x87b900
call fcn.0057a587
add esp, 4
mov dword [0x8f2700], 1
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 0x87b8d8
jmp 0x59e0b8
push 0x87b8b0
call fcn.0057a587
add esp, 4
cmp dword [0x8f816c], edi
je 0x59e0e5
cmp dword [0x8fd318], edi
jne 0x59e0e5
mov edx, dword [0x8f8164]
push edx
mov dword [0x8fc690], edi
call fcn.0058a2a0
add esp, 4
mov eax, 1
cmp dword [0x8f26bc], eax
jne 0x59e10a
mov eax, dword [0x8f2694]
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [0x8f26c4], eax
jmp 0x59e4bf
lea ecx, [esp + 0x1a0]
mov dword [0x8f28e8], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x30], 0x30
cld
mov al, 0
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x20]
rep stosb byte es:[edi], al
mov eax, dword [0x8f2690]
mov dword [esp + 0x1a4], esi
xor esi, esi
cmp dword [0x8f8158], esi
mov dword [esp + 0x1a8], 0x59be80
mov dword [esp + 0x1ac], esi
mov dword [esp + 0x1b0], esi
mov dword [esp + 0x1b4], eax
mov ecx, 0x7f00
je 0x59e171
movzx ecx, word [0x8f8158]
push ecx
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push esi
mov dword [esp + 0x1c0], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 5
mov dword [esp + 0x1c0], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
push 0x87b888
mov dword [esp + 0x1c4], eax
mov dword [esp + 0x1c8], esi
mov dword [esp + 0x1cc], 0x8f2f74
mov dword [esp + 0x1a4], 0x30
mov dword [esp + 0x1d0], esi
call fcn.0057a587
add esp, 4
lea edx, [esp + 0x1a0]
push edx
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
jne 0x59e205
push 0x87b858
mov dword [0x8f2700], 1
call fcn.0057a587
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 0x87b840
call fcn.0057a587
add esp, 4
cmp byte [0x8f2e74], 0
jne 0x59e227
push str.DxLib
push 0x8f2e74
call ebp
cmp dword [0x8f26ec], esi
je 0x59e3fa
push 0x87b7fc
call fcn.0057a587
mov ebp, 1
add esp, 4
xor edi, edi
cmp dword [0x8fcbd8], ebp
jne 0x59e252
lea edi, [ebp + 0x1f]
cmp dword [0x8fcd00], ebp
jne 0x59e260
or edi, 0x80000
cmp dword [0x8f26f4], ebp
jne 0x59e26d
mov esi, 0x10000
cmp dword [0x8fcbd4], ebp
jne 0x59e27b
or esi, 0x10000000
cmp dword [0x8fcba4], ebp
jne 0x59e289
or esi, 0x40000
lea eax, [esp + 0x158]
push eax
lea ecx, [esp + 0x16c]
push ecx
mov dword [0x8f273c], ebp
call fcn.0057b167
fstp st(0)
fild dword [esp + 0x20]
fmul qword [esp + 0x170]
fstp qword [esp]
call fcn.0057e119
fild dword [esp + 0x24]
mov dword [esp + 0x20], eax
fmul qword [esp + 0x160]
fstp qword [esp]
call fcn.0057e119
add esp, 8
cmp dword [0x8fcbc4], ebp
mov dword [esp + 0x1c], eax
jne 0x59e2f2
mov edx, dword [0x8fcbbc]
mov eax, dword [0x8fcbc0]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
push eax
mov eax, dword [esp + 0x1c]
push eax
push 0
push 0
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [0x8f26b8]
mov edx, dword [eax*4 + 0x879db4]
mov eax, dword [eax*4 + 0x879d88]
add edx, edi
push edx
push 0
add eax, esi
push eax
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
sub ecx, dword [esp + 0x38]
mov edx, eax
neg edx
mov dword [0x8f26a4], edx
mov edx, dword [esp + 0x44]
sub edx, eax
push 0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
call ebx
sub eax, dword [esp + 0x18]
push ebp
cdq
sub eax, edx
sar eax, 1
add dword [esp + 0x3c], eax
call ebx
sub eax, dword [esp + 0x1c]
push 0
cdq
sub eax, edx
sar eax, 1
add dword [esp + 0x40], eax
call ebx
sub eax, dword [esp + 0x18]
push ebp
cdq
sub eax, edx
sar eax, 1
add dword [esp + 0x44], eax
call ebx
mov ecx, dword [esp + 0x1c]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add dword [esp + 0x44], eax
cmp dword [0x8fcbd0], ebp
jne 0x59e3ab
mov ebp, dword [0x8fcbcc]
mov edx, dword [0x8fcbc8]
jmp 0x59e3b3
mov ebp, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov ebx, dword [0x8f2690]
mov eax, dword [0x8f26b8]
push 0
push ebx
mov ebx, dword [0x8f8164]
push ebx
push 0
push ecx
mov ecx, dword [esp + 0x2c]
push ecx
push ebp
push edx
mov edx, dword [eax*4 + 0x879d88]
mov eax, dword [eax*4 + 0x879db4]
add edx, esi
push edx
push 0x8f2e74
push 0x8f2f74
add eax, edi
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
xor esi, esi
jmp 0x59e448
push 0x87b7c0
call fcn.0057a587
mov ecx, dword [0x8f2690]
mov edx, dword [esp + 0x20]
mov eax, dword [0x8f26b8]
add esp, 4
push esi
push ecx
mov ecx, dword [esp + 0x20]
push esi
push esi
push edx
mov edx, dword [eax*4 + 0x879de0]
mov eax, dword [eax*4 + str._b_b_b_b_b_b_b_b_b_b]
push ecx
push esi
push esi
push edx
push 0x8f2e74
push 0x8f2f74
push eax
mov dword [0x8f273c], esi
call dword [sym.imp.USER32.dll_CreateWindowExA]
cmp eax, esi
mov dword [0x8f2694], eax
jne 0x59e470
push 0x87b798
mov dword [0x8f2700], 1
call fcn.0057a587
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 0x87b770
call fcn.0057a587
add esp, 4
cmp dword [0x8fcbd8], esi
jne 0x59e4a3
mov ecx, dword [0x8f2694]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [0x8f2694]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x59e4bd
mov eax, dword [0x8f2694]
push esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x87b754
call fcn.0057a587
add esp, 4
xor edi, edi
cmp dword [0x8f26ec], edi
mov dword [0x8f2704], edi
mov dword [0x8f2708], edi
mov dword [0x8f2710], 1
jne 0x59e4f1
push 0x87b730
call fcn.0057a587
add esp, 4
push edi
call dword [sym.imp.USER32.dll_SetCursor]
push 0x87b714
call fcn.0057a587
add esp, 4
cmp dword [0x8ed8f4], edi
jne 0x59e513
mov ecx, dword [0x8f2694]
push edi
push ecx
call fcn.0057ba7c
cmp dword [0x8f26ec], edi
je 0x59e54e
mov edx, dword [0x8f2694]
push 0x8f26dc
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [0x8f2694]
mov esi, dword [sym.imp.USER32.dll_ClientToScreen]
push 0x8f26dc
push eax
call esi
mov ecx, dword [0x8f2694]
push 0x8f26e4
push ecx
call esi
mov edx, dword [0x8f273c]
push edx
call fcn.0057eeb1
add esp, 4
cmp dword [0x8f26bc], edi
mov dword [0x8f272c], edi
jne 0x59e592
cmp dword [0x8fcbd8], edi
jne 0x59e58c
mov eax, dword [0x8f2694]
push eax
call dword [sym.imp.USER32.dll_BringWindowToTop]
cmp dword [0x8fcbd8], edi
jne 0x59e58c
call fcn.0057d30e
mov dword [0x8f28e8], edi
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret