Function at 0x458e08
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x1f
push 0
push 0
dec ecx
jne 0x458e11
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
test dl, dl
je 0x458e2a
add esp, 0xfffffff0
call fcn.00404b00
mov dword [ebp - 0x14], ecx
mov byte [ebp - 0x25], dl
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x14]
call fcn.00408d88
lea esi, [ebp - 4]
xor eax, eax
push ebp
push 0x459e85
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, dword [esi]
call fcn.004045ec
mov eax, dword [esi]
add eax, 0x74
mov edx, dword [ebp - 0x14]
call fcn.00408d2c
mov eax, dword [esi]
mov byte [eax + 0x5c], bl
mov eax, dword [esi]
mov dword [eax + 0x98], 0xffffffff
push 1
push 1
push 0x21
push 0x10
push 0x10
call sub.comctl32.dll_ImageList_Create
mov edx, dword [esi]
mov dword [edx + 0x8c], eax
test bl, bl
jne 0x458eb1
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0xc0]
test al, al
je 0x458eb1
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x90]
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0x58]
call fcn.004405f0
test al, al
je 0x458ee6
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0x80]
test al, al
je 0x458ee6
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov dl, 6
mov ecx, dword [eax]
call dword [ecx + 0xa4]
jmp 0x458f54
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0x50]
call fcn.004405f0
test al, al
je 0x458f18
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0x7c]
test al, al
je 0x458f18
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov dl, 5
mov ecx, dword [eax]
call dword [ecx + 0xa4]
jmp 0x458f54
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0x48]
test al, al
je 0x458f54
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0x78]
test al, al
je 0x458f54
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0x30c]
test al, al
je 0x458f54
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov dl, 4
mov ecx, dword [eax]
call dword [ecx + 0xa4]
lea edx, [ebp - 0x1c]
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov ecx, dword [eax]
call dword [ecx + 0x320]
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0x318]
mov edx, dword [0x5d07d8]
call fcn.00440e14
test al, al
jne 0x458fce
lea eax, [ebp - 0x1c]
xor edx, edx
call fcn.00405eec
call fcn.00406084
mov edi, eax
sub edi, 0xa
cmp edi, 0x14
jl 0x458fce
mov eax, dword [ebp - 0x1c]
cmp byte [eax + edi - 1], 0x2e
jne 0x458fc8
mov eax, dword [ebp - 0x1c]
cmp byte [eax + edi], 0x20
jne 0x458fc8
lea eax, [ebp - 0x1c]
call fcn.004064f8
mov byte [eax + edi], 0xd
lea ecx, [edi + 2]
lea edx, [ebp - 0x1c]
mov eax, 0x459ebc
call fcn.004065b0
dec edi
cmp edi, 0x13
jne 0x458f99
test bl, bl
je 0x459065
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0x314]
cmp al, 1
jne 0x45902c
lea edx, [ebp - 0x18]
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov ecx, dword [eax]
call dword [ecx + 0x240]
mov eax, dword [ebp - 0x1c]
push eax
push 0
lea edx, [ebp - 0xc8]
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov ecx, dword [eax]
call dword [ecx + 0x31c]
mov eax, dword [ebp - 0xc8]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0xc]
lea edx, [ebp - 0x18]
pop ecx
call fcn.004407e4
jmp 0x459037
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
call fcn.00405d8c
lea edx, [ebp - 0xd0]
xor eax, eax
call fcn.0043eda8
mov eax, dword [ebp - 0xd0]
lea edx, [ebp - 0xcc]
call fcn.0043eddc
mov eax, dword [ebp - 0xcc]
lea edx, [ebp - 0x1c]
call fcn.0043efdc
jmp 0x4590db
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0x314]
cmp al, 1
jne 0x459088
lea edx, [ebp - 0x18]
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov ecx, dword [eax]
call dword [ecx + 0x240]
jmp 0x459098
lea edx, [ebp - 0x18]
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov ecx, dword [eax]
call dword [ecx + 0x238]
mov eax, dword [ebp - 0x1c]
push eax
push 0
lea edx, [ebp - 0xd4]
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov ecx, dword [eax]
call dword [ecx + 0x31c]
mov eax, dword [ebp - 0xd4]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0xc]
lea edx, [ebp - 0x18]
pop ecx
call fcn.004407e4
lea edx, [ebp - 0x1c]
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov ecx, dword [eax]
call dword [ecx + 0x230]
lea eax, [ebp - 0x88]
mov edx, 0x28
call fcn.0040ade0
mov dword [ebp - 0x88], 0xc0
mov eax, sub.user32.dll_DefWindowProcA
mov dword [ebp - 0x84], eax
mov eax, dword [0x5dbb50]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x6c], 0x10
mov eax, 0x459ec0
mov dword [ebp - 0x64], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorW
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x88]
push eax
call sub.user32.dll_RegisterClassA
test bl, bl
jne 0x45914e
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0xc0]
test al, al
je 0x45914e
mov edi, 0x70000
jmp 0x459150
xor edi, edi
or edi, 0xc80000
push edi
push 0
push 0
push 0x64
push 0x64
push 0
push 0
mov eax, dword [0x5dbb50]
push eax
push 0
mov eax, dword [ebp - 0x1c]
call fcn.00406480
mov ecx, eax
mov edx, dword [ebp - 0x64]
mov eax, 9
call fcn.0040ae94
mov edx, dword [esi]
mov dword [edx + 0x2c], eax
mov edx, 0x454c10
mov eax, dword [esi]
call fcn.00425434
mov edx, dword [esi]
mov dword [edx + 4], eax
mov eax, dword [esi]
mov eax, dword [eax + 4]
push eax
push 0xfffffffffffffffc
mov eax, dword [esi]
mov eax, dword [eax + 0x2c]
push eax
call sub.user32.dll_SetWindowLongA
test bl, bl
jne 0x4591c0
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0xc0]
test al, al
jne 0x459203
push 0
mov eax, dword [esi]
mov eax, dword [eax + 0x2c]
push eax
call sub.user32.dll_GetSystemMenu
mov edi, eax
push 0
push 0xf020
push edi
call sub.user32.dll_RemoveMenu
push 0
push 0xf030
push edi
call sub.user32.dll_RemoveMenu
push 0
push 0xf120
push edi
call sub.user32.dll_RemoveMenu
push 0
push 0xf000
push edi
call sub.user32.dll_RemoveMenu
push 0x459ed4
push 0
push 0
push 0
push 0
push 1
push 0
push 0
push 0
push 0x190
push 0
push 0
push 0
push 0xfffffffffffffff5
call sub.gdi32.dll_CreateFontW
mov edi, eax
mov eax, dword [esi]
mov dword [eax + 0x10], edi
test edi, edi
jne 0x459261
push 0x459ee4
push 0
push 0
push 0
push 0
push 1
push 0
push 0
push 0
push 0x190
push 0
push 0
push 0
push 0xfffffffffffffff4
call sub.gdi32.dll_CreateFontW
mov edx, dword [esi]
mov dword [edx + 0x10], eax
push 0x459f00
push 0
push 0
push 0
push 0
push 1
push 0
push 0
push 0
push 0x190
push 0
push 0
push 0
push 0xfffffffffffffff5
call sub.gdi32.dll_CreateFontW
mov edx, dword [esi]
mov dword [edx + 0x14], eax
push 0x459f18
push 0
push 0
push 0
push 0
push 1
push 0
push 0
push 0
push 0x190
push 0
push 0
push 0
push 0xfffffffffffffff8
call sub.gdi32.dll_CreateFontW
mov edx, dword [esi]
mov dword [edx + 0x18], eax
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov edi, eax
mov eax, dword [esi]
mov dword [eax + 8], edi
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
push eax
push edi
call sub.gdi32.dll_SelectObject
mov edx, dword [esi]
mov dword [edx + 0x28], eax
push 1
mov eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call sub.gdi32.dll_SetBkMode
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0x68]
test al, al
je 0x4592fc
test bl, bl
je 0x459300
xor eax, eax
jmp 0x459302
mov al, 1
mov byte [ebp - 0x59], al
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0x6c]
test al, al
je 0x459317
test bl, bl
je 0x45931b
xor eax, eax
jmp 0x45931d
mov al, 1
mov byte [ebp - 0x5a], al
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0x70]
test al, al
je 0x459332
test bl, bl
je 0x459336
xor eax, eax
jmp 0x459338
mov al, 1
mov byte [ebp - 0x5b], al
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0x74]
test al, al
je 0x45934d
test bl, bl
je 0x459356
test byte [ebp + 0xc], bl
jne 0x459356
xor eax, eax
jmp 0x459358
mov al, 1
mov byte [ebp - 0x5c], al
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0x78]
or al, bl
mov byte [ebp - 0x5d], al
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0x7c]
test al, al
je 0x45937c
test bl, bl
je 0x459380
xor eax, eax
jmp 0x459382
mov al, 1
mov byte [ebp - 0x5e], al
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0x80]
test al, al
je 0x45939a
test bl, bl
je 0x45939e
xor eax, eax
jmp 0x4593a0
mov al, 1
mov byte [ebp - 0x5f], al
test bl, bl
je 0x4593d2
mov eax, dword [esi]
mov dword [eax + 0x60], 0x17
lea edx, [ebp - 0x24]
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov ecx, dword [eax]
call dword [ecx + 0x288]
lea edx, [ebp - 0x20]
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov ecx, dword [eax]
call dword [ecx + 0x28c]
jmp 0x459417
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x4593ee
mov eax, dword [esi]
mov dword [eax + 0x60], 0x1a
jmp 0x4593f7
mov eax, dword [esi]
mov dword [eax + 0x60], 0x16
lea edx, [ebp - 0x24]
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov ecx, dword [eax]
call dword [ecx + 0x260]
lea edx, [ebp - 0x20]
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov ecx, dword [eax]
call dword [ecx + 0x25c]
movzx eax, byte [ebp - 0x59]
push eax
push 0
lea edx, [ebp - 0xd8]
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov ecx, dword [eax]
call dword [ecx + 0x250]
mov ecx, dword [ebp - 0xd8]
mov edx, 0x27
mov eax, dword [esi]
call fcn.0045412c
mov dword [ebp - 0x40], eax
movzx eax, byte [ebp - 0x5a]
push eax
push 0
lea edx, [ebp - 0xdc]
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov ecx, dword [eax]
call dword [ecx + 0x254]
mov ecx, dword [ebp - 0xdc]
mov edx, 0x27
mov eax, dword [esi]
call fcn.0045412c
mov dword [ebp - 0x44], eax
movzx eax, byte [ebp - 0x5b]
push eax
push 0
lea edx, [ebp - 0xe0]
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov ecx, dword [eax]
call dword [ecx + 0x258]
mov ecx, dword [ebp - 0xe0]
mov edx, 0x27
mov eax, dword [esi]
call fcn.0045412c
mov dword [ebp - 0x48], eax
movzx eax, byte [ebp - 0x5c]
push eax
push 0
mov ecx, dword [ebp - 0x20]
mov edx, 0x27
mov eax, dword [esi]
call fcn.0045412c
mov dword [ebp - 0x4c], eax
movzx eax, byte [ebp - 0x5d]
push eax
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, 0x27
mov eax, dword [esi]
call fcn.0045412c
mov dword [ebp - 0x50], eax
movzx eax, byte [ebp - 0x5e]
push eax
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0xe4]
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov ecx, dword [eax]
call dword [ecx + 0x264]
mov ecx, dword [ebp - 0xe4]
mov edx, 0x27
mov eax, dword [esi]
call fcn.0045412c
mov dword [ebp - 0x54], eax
movzx eax, byte [ebp - 0x5f]
push eax
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0xe8]
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov ecx, dword [eax]
call dword [ecx + 0x268]
mov ecx, dword [ebp - 0xe8]
mov edx, 0x27
mov eax, dword [esi]
call fcn.0045412c
mov dword [ebp - 0x58], eax
test bl, bl
je 0x459558
cmp dword [ebp - 0x50], 0x4b
jge 0x45954b
mov dword [ebp - 0x50], 0x4f
cmp dword [ebp - 0x4c], 0x4b
jge 0x459558
mov dword [ebp - 0x4c], 0x4f
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x40]
jle 0x459565
mov edi, dword [ebp - 0xc]
jmp 0x459568
mov edi, dword [ebp - 0x40]
cmp edi, dword [ebp - 0x4c]
jge 0x459570
mov edi, dword [ebp - 0x4c]
cmp edi, dword [ebp - 0x44]
jge 0x459578
mov edi, dword [ebp - 0x44]
cmp edi, dword [ebp - 0x48]
jge 0x459580
mov edi, dword [ebp - 0x48]
lea eax, [ebp - 0xc4]
mov edx, 0x2c
call fcn.0040ade0
mov eax, edi
sub eax, 4
mov edx, dword [esi]
mov dword [edx + 0x1c], eax
mov dword [ebp - 0xc4], 0x28
mov dword [ebp - 0xc0], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x60]
mov dword [ebp - 0xbc], eax
mov word [ebp - 0xb8], 1
mov word [ebp - 0xb6], 0x20
push 0
push 0
mov eax, dword [esi]
add eax, 0x20
push eax
push 0
lea eax, [ebp - 0xc4]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call sub.gdi32.dll_CreateDIBSection
mov edi, eax
mov eax, dword [esi]
mov dword [eax + 0xc], edi
push edi
mov eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call sub.gdi32.dll_SelectObject
mov edx, dword [esi]
mov dword [edx + 0x24], eax
mov byte [ebp - 0xd], 1
movzx edi, byte [ebp - 0x5d]
movzx eax, byte [ebp - 0x5e]
add edi, eax
movzx eax, byte [ebp - 0x5f]
add edi, eax
cmp edi, 1
jle 0x45962b
movzx eax, byte [ebp - 0x59]
or al, byte [ebp - 0x5a]
jne 0x45962f
cmp byte [ebp - 0x5b], 0
jne 0x45962f
cmp byte [ebp - 0x5c], 0
jne 0x45962f
xor eax, eax
jmp 0x459631
mov al, 1
mov byte [ebp - 5], al
cmp edi, 1
jne 0x45963e
mov edi, 2
test bl, bl
je 0x459669
mov eax, dword [ebp - 0x50]
add eax, 0xc
add eax, 0xe
mov dword [ebp - 0x38], eax
cmp byte [ebp + 0xc], 0
je 0x459660
mov eax, dword [ebp - 0x38]
add eax, 2
add eax, dword [ebp - 0x4c]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x2c], 0x1a
jmp 0x4596ba
cmp byte [ebp - 5], 0
je 0x459695
mov eax, dword [ebp - 0x40]
add eax, 6
add eax, dword [ebp - 0x44]
add eax, dword [ebp - 0x48]
add eax, dword [ebp - 0x4c]
add eax, dword [ebp - 0xc]
add eax, 8
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0xc]
add eax, 0x20
add eax, 8
mov dword [ebp - 0x2c], eax
jmp 0x4596ba
mov eax, dword [ebp - 0x40]
add eax, 6
add eax, dword [ebp - 0x44]
add eax, dword [ebp - 0x48]
add eax, dword [ebp - 0x4c]
add eax, dword [ebp - 0x50]
add eax, dword [ebp - 0x54]
add eax, dword [ebp - 0x58]
add eax, 8
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x2c], 0x1a
push 2
push 0x459f30
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.KERNEL32.DLL_FindResourceA
test eax, eax
je 0x459710
add dword [ebp - 0x2c], 0x28
push ebp
push 9
push 0xa
push 0x20
push 0x20
mov eax, dword [esi]
mov eax, dword [eax + 0x2c]
push eax
mov ecx, 0x800000b
xor edx, edx
mov eax, 0x459f44
call fcn.00458bb8
pop ecx
mov edx, dword [esi]
mov dword [edx + 0x70], eax
push 8
push 0xffffffffffffffeb
mov eax, dword [esi]
mov eax, dword [eax + 0x70]
push eax
call sub.user32.dll_SetWindowLongA
jmp 0x459717
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0x70], edx
cmp dword [ebp - 0x38], 0x298
jge 0x45973d
push 0
mov eax, 0x298
sub eax, dword [ebp - 0x2c]
push eax
push 0
push 0
lea eax, [ebp - 0x98]
push eax
call sub.user32.dll_SetRect
jmp 0x459756
push 0
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x2c]
push eax
push 0
push 0
lea eax, [ebp - 0x98]
push eax
call sub.user32.dll_SetRect
push 0x410
lea eax, [ebp - 0x98]
push eax
push 0xffffffffffffffff
mov eax, dword [ebp - 0x18]
call fcn.00406480
push eax
mov eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call sub.user32.dll_DrawTextA
mov eax, dword [ebp - 0x90]
add eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x38]
jle 0x459791
mov eax, dword [ebp - 0x90]
add dword [ebp - 0x2c], eax
jmp 0x459797
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x298
push 0
call sub.user32.dll_GetSystemMetrics
push eax
push 4
call sub.user32.dll_GetSystemMetrics
lea eax, [eax + eax*4]
pop edx
sub edx, eax
cmp edx, dword [ebp - 0x3c]
jge 0x4597d0
push 0
call sub.user32.dll_GetSystemMetrics
push eax
push 4
call sub.user32.dll_GetSystemMetrics
lea eax, [eax + eax*4]
pop edx
sub edx, eax
mov dword [ebp - 0x3c], edx
test bl, bl
jne 0x4597f3
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0xc0]
test al, al
je 0x4597f3
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x2c]
jle 0x4597f3
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi]
cmp dword [eax + 0x70], 0
je 0x45980d
cmp dword [ebp - 0x8c], 0x1a
jge 0x45980d
mov dword [ebp - 0x34], 0x1f
jmp 0x459819
mov eax, dword [ebp - 0x8c]
add eax, 5
mov dword [ebp - 0x34], eax
cmp edi, 3
jne 0x459843
cmp byte [ebp - 5], 0
je 0x45983e
mov eax, dword [esi]
mov eax, dword [eax + 0x60]
add eax, 4
sub dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 7
jge 0x459843
mov dword [ebp - 0x34], 7
jmp 0x459843
mov edi, 2
test bl, bl
je 0x4598ef
cmp byte [ebp + 0xc], 0
je 0x459872
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x50]
add eax, 4
sub eax, dword [ebp - 0x4c]
add eax, 4
sub eax, 6
sar eax, 1
jns 0x45986a
adc eax, 0
sub eax, 3
mov dword [ebp - 0x30], eax
jmp 0x459888
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x50]
add eax, 4
sar eax, 1
jns 0x459882
adc eax, 0
sub eax, 3
mov dword [ebp - 0x30], eax
push ebp
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x34]
push eax
push 1
mov eax, dword [ebp - 0x50]
push eax
mov ecx, 4
movzx edx, byte [ebp - 0x5d]
mov eax, dword [ebp - 0x24]
call fcn.00458c64
pop ecx
mov edx, dword [esi]
mov dword [edx + 0x50], eax
add dword [ebp - 0x30], 2
push ebp
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x34]
push eax
push 1
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, 3
movzx edx, byte [ebp - 0x5c]
mov eax, dword [ebp - 0x20]
call fcn.00458c64
pop ecx
mov edx, dword [esi]
mov dword [edx + 0x44], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x60]
add eax, 4
mov edi, eax
add edi, edi
add edi, dword [ebp - 0x34]
add edi, 0xd
jmp 0x459ab9
mov dword [ebp - 0x30], 6
push ebp
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x34]
push eax
mov eax, edi
dec eax
push eax
mov eax, dword [ebp - 0x40]
push eax
lea edx, [ebp - 0xec]
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov ecx, dword [eax]
call dword [ecx + 0x250]
mov eax, dword [ebp - 0xec]
xor ecx, ecx
movzx edx, byte [ebp - 0x59]
call fcn.00458c64
pop ecx
mov edx, dword [esi]
mov dword [edx + 0x38], eax
push ebp
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x34]
push eax
mov eax, edi
dec eax
push eax
mov eax, dword [ebp - 0x44]
push eax
lea edx, [ebp - 0xf0]
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov ecx, dword [eax]
call dword [ecx + 0x254]
mov eax, dword [ebp - 0xf0]
mov ecx, 1
movzx edx, byte [ebp - 0x5a]
call fcn.00458c64
pop ecx
mov edx, dword [esi]
mov dword [edx + 0x3c], eax
push ebp
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x34]
push eax
mov eax, edi
dec eax
push eax
mov eax, dword [ebp - 0x48]
push eax
lea edx, [ebp - 0xf4]
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov ecx, dword [eax]
call dword [ecx + 0x258]
mov eax, dword [ebp - 0xf4]
mov ecx, 2
movzx edx, byte [ebp - 0x5b]
call fcn.00458c64
pop ecx
mov edx, dword [esi]
mov dword [edx + 0x40], eax
push ebp
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x34]
push eax
mov eax, edi
dec eax
push eax
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, 3
movzx edx, byte [ebp - 0x5c]
mov eax, dword [ebp - 0x20]
call fcn.00458c64
pop ecx
mov edx, dword [esi]
mov dword [edx + 0x44], eax
cmp byte [ebp - 5], 0
je 0x4599e9
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0xc]
sub eax, 8
mov dword [ebp - 0x30], eax
jmp 0x4599fb
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x50]
sub eax, dword [ebp - 0x54]
sub eax, dword [ebp - 0x58]
sub eax, 8
mov dword [ebp - 0x30], eax
push ebp
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x34]
push eax
push 0
mov eax, dword [ebp - 0x50]
push eax
mov ecx, 4
movzx edx, byte [ebp - 0x5d]
mov eax, dword [ebp - 0x24]
call fcn.00458c64
pop ecx
mov edx, dword [esi]
mov dword [edx + 0x50], eax
push ebp
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0x78]
and eax, 0x7f
push eax
mov eax, dword [ebp - 0x54]
push eax
lea edx, [ebp - 0xf8]
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov ecx, dword [eax]
call dword [ecx + 0x264]
mov eax, dword [ebp - 0xf8]
mov ecx, 5
movzx edx, byte [ebp - 0x5e]
call fcn.00458c64
pop ecx
mov edx, dword [esi]
mov dword [edx + 0x4c], eax
push ebp
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x34]
push eax
mov eax, edi
dec eax
push eax
mov eax, dword [ebp - 0x58]
push eax
lea edx, [ebp - 0xfc]
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov ecx, dword [eax]
call dword [ecx + 0x268]
mov eax, dword [ebp - 0xfc]
mov ecx, 6
movzx edx, byte [ebp - 0x5f]
call fcn.00458c64
pop ecx
mov edx, dword [esi]
mov dword [edx + 0x48], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x60]
add eax, 4
imul edi
add eax, dword [ebp - 0x34]
add eax, 8
mov edi, eax
cmp byte [ebp - 0x5d], 0
je 0x459af5
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0x30c]
test al, al
jne 0x459af5
movzx eax, byte [ebp - 0x5e]
or al, byte [ebp - 0x5f]
je 0x459af5
push 0
mov eax, dword [esi]
mov eax, dword [eax + 0x50]
push eax
call sub.user32.dll_EnableWindow
push 7
push 0xffffffffffffffeb
mov eax, dword [esi]
mov eax, dword [eax + 0x50]
push eax
call sub.user32.dll_SetWindowLongA
mov dword [ebp - 0x98], 0xb
mov dword [ebp - 0x94], 0xc
mov eax, dword [esi]
cmp dword [eax + 0x70], 0
je 0x459b3f
mov dword [ebp - 0x98], 0x33
cmp dword [ebp - 0x8c], 0x1a
jge 0x459b3f
mov eax, 0x1a
sub eax, dword [ebp - 0x8c]
sar eax, 1
jns 0x459b36
adc eax, 0
add eax, 0xc
mov dword [ebp - 0x94], eax
push ebp
mov eax, dword [ebp - 0x98]
push eax
mov eax, dword [ebp - 0x94]
push eax
mov eax, dword [ebp - 0x90]
push eax
mov eax, dword [ebp - 0x8c]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x2c]
push eax
xor ecx, ecx
mov edx, dword [ebp - 0x18]
mov eax, 0x459f58
call fcn.00458bb8
pop ecx
mov dword [ebp - 0x34], edi
test bl, bl
jne 0x459b90
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0xc0]
test al, al
je 0x459b90
add edi, 0x1da
push 1
call sub.user32.dll_GetSystemMetrics
push eax
push 4
call sub.user32.dll_GetSystemMetrics
lea eax, [eax + eax*4]
pop edx
sub edx, eax
cmp edi, edx
jle 0x459bbe
push 1
call sub.user32.dll_GetSystemMetrics
mov edi, eax
push 4
call sub.user32.dll_GetSystemMetrics
lea eax, [eax + eax*4]
sub edi, eax
test bl, bl
jne 0x459c4b
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0xc0]
test al, al
je 0x459c4b
push ebp
push 5
mov eax, dword [ebp - 0x34]
sub eax, 4
push eax
mov eax, dword [ebp - 0x2c]
sub eax, 0xf
push eax
mov eax, edi
sub eax, dword [ebp - 0x34]
sub eax, 6
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x2c]
push eax
xor ecx, ecx
xor edx, edx
mov eax, 0x459f6c
call fcn.00458bb8
pop ecx
mov edx, dword [esi]
mov dword [edx + 0x30], eax
mov edx, 0x455528
mov eax, dword [esi]
call fcn.00425434
mov edx, dword [esi]
mov dword [edx + 0x90], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x90]
push eax
push 0xfffffffffffffffc
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_SetWindowLongA
mov edx, dword [esi]
mov dword [edx + 0x94], eax
mov eax, dword [esi]
call fcn.0045878c
mov eax, dword [esi]
call fcn.004580c0
push 4
call sub.user32.dll_GetSystemMetrics
add edi, eax
mov eax, ebx
xor al, 1
test al, al
je 0x459c9e
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0xc0]
test al, al
je 0x459c9e
push 0x20
call sub.user32.dll_GetSystemMetrics
push eax
push 7
call sub.user32.dll_GetSystemMetrics
pop edx
sub edx, eax
mov eax, edx
add eax, eax
add dword [ebp - 0x2c], eax
push 0x21
call sub.user32.dll_GetSystemMetrics
push eax
push 8
call sub.user32.dll_GetSystemMetrics
pop edx
sub edx, eax
mov eax, edx
add eax, eax
add edi, eax
push 4
push edi
mov eax, dword [ebp - 0x2c]
push eax
push 1
call sub.user32.dll_GetSystemMetrics
sub eax, edi
sar eax, 1
jns 0x459cb5
adc eax, 0
push eax
push 0
call sub.user32.dll_GetSystemMetrics
sub eax, dword [ebp - 0x2c]
sar eax, 1
jns 0x459cc7
adc eax, 0
push eax
push 0
mov eax, dword [esi]
mov eax, dword [eax + 0x2c]
push eax
call sub.user32.dll_SetWindowPos
lea eax, [ebp - 0x98]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x2c]
push eax
call sub.user32.dll_GetWindowRect
mov eax, dword [ebp - 0x90]
sub eax, dword [ebp - 0x98]
mov edx, dword [esi]
mov dword [edx + 0x78], eax
mov eax, dword [ebp - 0x8c]
sub eax, dword [ebp - 0x94]
mov edx, dword [esi]
mov dword [edx + 0x7c], eax
mov eax, dword [esi]
mov byte [eax + 0x80], 1
mov eax, ebx
xor al, 1
test al, al
je 0x459d84
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0x58]
call fcn.004405f0
and al, byte [ebp - 0x5f]
je 0x459d3a
mov eax, dword [esi]
mov eax, dword [eax + 0x48]
mov edx, dword [esi]
mov dword [edx + 0x54], eax
jmp 0x459d84
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0x50]
call fcn.004405f0
and al, byte [ebp - 0x5e]
je 0x459d5a
mov eax, dword [esi]
mov eax, dword [eax + 0x4c]
mov edx, dword [esi]
mov dword [edx + 0x54], eax
jmp 0x459d84
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0x48]
and al, byte [ebp - 0x5d]
je 0x459d84
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0x30c]
test al, al
je 0x459d84
mov eax, dword [esi]
mov eax, dword [eax + 0x50]
mov edx, dword [esi]
mov dword [edx + 0x54], eax
mov eax, dword [esi]
cmp dword [eax + 0x54], 0
je 0x459daf
call sub.KERNEL32.DLL_GetTickCount_1
mov edx, dword [esi]
mov dword [edx + 0x64], eax
push 0
push 0xa
push 0x309
mov eax, dword [esi]
mov eax, dword [eax + 0x2c]
push eax
call sub.user32.dll_SetTimer
mov edx, dword [esi]
mov dword [edx + 0x68], eax
cmp dword [0x5d07a0], 0
je 0x459dc5
mov eax, dword [esi]
mov eax, dword [eax + 0x2c]
mov edx, ebx
call dword [0x5d07a0]
cmp byte [ebp + 8], 0
je 0x459dd2
push 0x10
call sub.user32.dll_MessageBeep
push 1
mov eax, dword [esi]
mov eax, dword [eax + 0x2c]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [esi]
mov eax, dword [eax + 0x2c]
push eax
call sub.user32.dll_IsIconic
test eax, eax
je 0x459dfb
push 9
mov eax, dword [esi]
mov eax, dword [eax + 0x2c]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [esi]
mov eax, dword [eax + 0x2c]
push eax
call sub.user32.dll_BringWindowToTop
mov eax, dword [esi]
mov eax, dword [eax + 0x2c]
push eax
call sub.user32.dll_SetForegroundWindow
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0x314]
cmp al, 1
jne 0x459e3b
push 0
mov eax, dword [esi]
mov eax, dword [eax + 0x2c]
push eax
mov eax, dword [0x5d0fb0]
push eax
mov eax, dword [0x5d0fac]
push eax
call sub.user32.dll_PostMessageA
mov eax, dword [esi]
push eax
push 0x4554d0
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x368]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459e8c
lea eax, [ebp - 0xfc]
mov edx, 0xe
call fcn.00405d00
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.00405d00
lea eax, [ebp - 0x14]
call fcn.00408d14
ret