Function at 0x4596a8
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 0x4596b1
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
test dl, dl
je 0x4596ca
add esp, 0xfffffff0
call fcn.0040596c
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.0040a7b0
lea esi, [ebp - 4]
xor eax, eax
push ebp
push 0x45a758
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, dword [esi]
call fcn.00405408
mov eax, dword [esi]
add eax, 0x74
mov edx, dword [ebp - 0x14]
call fcn.0040a754
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 0x459751
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0xc0]
test al, al
je 0x459751
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.00439638
test al, al
je 0x459786
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0x80]
test al, al
je 0x459786
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov dl, 6
mov ecx, dword [eax]
call dword [ecx + 0xa4]
jmp 0x4597f4
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0x50]
call fcn.00439638
test al, al
je 0x4597b8
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0x7c]
test al, al
je 0x4597b8
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov dl, 5
mov ecx, dword [eax]
call dword [ecx + 0xa4]
jmp 0x4597f4
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0x48]
test al, al
je 0x4597f4
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0x78]
test al, al
je 0x4597f4
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0x30c]
test al, al
je 0x4597f4
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 [0x61c688]
call fcn.00439e90
test al, al
jne 0x45986e
lea eax, [ebp - 0x1c]
xor edx, edx
call fcn.00406a28
call fcn.00406bc0
mov edi, eax
sub edi, 0xa
cmp edi, 0x14
jl 0x45986e
mov eax, dword [ebp - 0x1c]
cmp byte [eax + edi - 1], 0x2e
jne 0x459868
mov eax, dword [ebp - 0x1c]
cmp byte [eax + edi], 0x20
jne 0x459868
lea eax, [ebp - 0x1c]
call fcn.00407088
mov byte [eax + edi], 0xd
lea ecx, [edi + 2]
lea edx, [ebp - 0x1c]
mov eax, 0x45a790
call fcn.00407140
dec edi
cmp edi, 0x13
jne 0x459839
test bl, bl
je 0x459905
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0x314]
cmp al, 1
jne 0x4598cc
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.0043982c
jmp 0x4598d7
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
call fcn.004068ac
lea edx, [ebp - 0xd0]
xor eax, eax
call fcn.00437dc0
mov eax, dword [ebp - 0xd0]
lea edx, [ebp - 0xcc]
call fcn.00437df4
mov eax, dword [ebp - 0xcc]
lea edx, [ebp - 0x1c]
call fcn.00437ff4
jmp 0x45997b
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0x314]
cmp al, 1
jne 0x459928
lea edx, [ebp - 0x18]
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov ecx, dword [eax]
call dword [ecx + 0x240]
jmp 0x459938
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.0043982c
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.0040da54
mov dword [ebp - 0x88], 0xc0
mov eax, sub.user32.dll_DefWindowProcA
mov dword [ebp - 0x84], eax
mov eax, dword [0x62ec40]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x6c], 0x10
mov eax, 0x45a794
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 0x4599ee
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0xc0]
test al, al
je 0x4599ee
mov edi, 0x70000
jmp 0x4599f0
xor edi, edi
or edi, 0xc80000
push edi
push 0
push 0
push 0x64
push 0x64
push 0
push 0
mov eax, dword [0x62ec40]
push eax
push 0
mov eax, dword [ebp - 0x1c]
call fcn.00407010
mov ecx, eax
mov edx, dword [ebp - 0x64]
mov eax, 9
call fcn.0040db28
mov edx, dword [esi]
mov dword [edx + 0x2c], eax
mov edx, 0x454f24
mov eax, dword [esi]
call fcn.0041b130
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 0x459a60
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0xc0]
test al, al
jne 0x459aa3
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 0x45a7a8
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 0x459b01
push 0x45a7b8
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 0x45a7d4
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 0x45a7ec
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 0x459b9c
test bl, bl
je 0x459ba0
xor eax, eax
jmp 0x459ba2
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 0x459bb7
test bl, bl
je 0x459bbb
xor eax, eax
jmp 0x459bbd
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 0x459bd2
test bl, bl
je 0x459bd6
xor eax, eax
jmp 0x459bd8
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 0x459bed
test bl, bl
je 0x459bf6
test byte [ebp + 0xc], bl
jne 0x459bf6
xor eax, eax
jmp 0x459bf8
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 0x459c1c
test bl, bl
je 0x459c20
xor eax, eax
jmp 0x459c22
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 0x459c3a
test bl, bl
je 0x459c3e
xor eax, eax
jmp 0x459c40
mov al, 1
mov byte [ebp - 0x5f], al
test bl, bl
je 0x459c72
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 0x459cb7
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x459c8e
mov eax, dword [esi]
mov dword [eax + 0x60], 0x1a
jmp 0x459c97
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.004542a4
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.004542a4
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.004542a4
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.004542a4
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.004542a4
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.004542a4
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.004542a4
mov dword [ebp - 0x58], eax
test bl, bl
je 0x459df8
cmp dword [ebp - 0x50], 0x4b
jge 0x459deb
mov dword [ebp - 0x50], 0x4f
cmp dword [ebp - 0x4c], 0x4b
jge 0x459df8
mov dword [ebp - 0x4c], 0x4f
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x40]
jle 0x459e05
mov edi, dword [ebp - 0xc]
jmp 0x459e08
mov edi, dword [ebp - 0x40]
cmp edi, dword [ebp - 0x4c]
jge 0x459e10
mov edi, dword [ebp - 0x4c]
cmp edi, dword [ebp - 0x44]
jge 0x459e18
mov edi, dword [ebp - 0x44]
cmp edi, dword [ebp - 0x48]
jge 0x459e20
mov edi, dword [ebp - 0x48]
lea eax, [ebp - 0xc4]
mov edx, 0x2c
call fcn.0040da54
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 0x459ecb
movzx eax, byte [ebp - 0x59]
or al, byte [ebp - 0x5a]
jne 0x459ecf
cmp byte [ebp - 0x5b], 0
jne 0x459ecf
cmp byte [ebp - 0x5c], 0
jne 0x459ecf
xor eax, eax
jmp 0x459ed1
mov al, 1
mov byte [ebp - 5], al
cmp edi, 1
jne 0x459ede
mov edi, 2
test bl, bl
je 0x459f09
mov eax, dword [ebp - 0x50]
add eax, 0xc
add eax, 0xe
mov dword [ebp - 0x38], eax
cmp byte [ebp + 0xc], 0
je 0x459f00
mov eax, dword [ebp - 0x38]
add eax, 2
add eax, dword [ebp - 0x4c]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x2c], 0x1a
jmp 0x459f5a
cmp byte [ebp - 5], 0
je 0x459f35
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 0x459f5a
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 0x45a804
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 0x459fb0
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, 0x45a818
call fcn.00459458
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 0x459fb7
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0x70], edx
cmp dword [ebp - 0x38], 0x298
jge 0x459fdd
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 0x459ff6
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.00407010
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 0x45a031
mov eax, dword [ebp - 0x90]
add dword [ebp - 0x2c], eax
jmp 0x45a037
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 0x45a070
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 0x45a093
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0xc0]
test al, al
je 0x45a093
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x2c]
jle 0x45a093
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi]
cmp dword [eax + 0x70], 0
je 0x45a0ad
cmp dword [ebp - 0x8c], 0x1a
jge 0x45a0ad
mov dword [ebp - 0x34], 0x1f
jmp 0x45a0b9
mov eax, dword [ebp - 0x8c]
add eax, 5
mov dword [ebp - 0x34], eax
cmp edi, 3
jne 0x45a0e3
cmp byte [ebp - 5], 0
je 0x45a0de
mov eax, dword [esi]
mov eax, dword [eax + 0x60]
add eax, 4
sub dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 7
jge 0x45a0e3
mov dword [ebp - 0x34], 7
jmp 0x45a0e3
mov edi, 2
test bl, bl
je 0x45a18f
cmp byte [ebp + 0xc], 0
je 0x45a112
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 0x45a10a
adc eax, 0
sub eax, 3
mov dword [ebp - 0x30], eax
jmp 0x45a128
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x50]
add eax, 4
sar eax, 1
jns 0x45a122
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.00459504
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.00459504
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 0x45a359
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.00459504
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.00459504
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.00459504
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.00459504
pop ecx
mov edx, dword [esi]
mov dword [edx + 0x44], eax
cmp byte [ebp - 5], 0
je 0x45a289
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0xc]
sub eax, 8
mov dword [ebp - 0x30], eax
jmp 0x45a29b
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.00459504
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.00459504
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.00459504
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 0x45a395
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0x30c]
test al, al
jne 0x45a395
movzx eax, byte [ebp - 0x5e]
or al, byte [ebp - 0x5f]
je 0x45a395
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 0x45a3df
mov dword [ebp - 0x98], 0x33
cmp dword [ebp - 0x8c], 0x1a
jge 0x45a3df
mov eax, 0x1a
sub eax, dword [ebp - 0x8c]
sar eax, 1
jns 0x45a3d6
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, 0x45a82c
call fcn.00459458
pop ecx
mov eax, ebx
xor al, 1
or al, byte [ebp + 0xc]
je 0x45a445
mov eax, edi
sub eax, 8
mov edx, dword [esi]
mov dword [edx + 0xa8], eax
test bl, bl
jne 0x45a442
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0xc0]
test al, al
je 0x45a442
add edi, 9
jmp 0x45a445
add edi, 0xb
mov dword [ebp - 0x34], edi
test bl, bl
jne 0x45a463
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0xc0]
test al, al
je 0x45a463
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 0x45a491
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 0x45a51e
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0xc0]
test al, al
je 0x45a51e
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, 0x45a840
call fcn.00459458
pop ecx
mov edx, dword [esi]
mov dword [edx + 0x30], eax
mov edx, 0x455cbc
mov eax, dword [esi]
call fcn.0041b130
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.0045902c
mov eax, dword [esi]
call fcn.00458960
push 4
call sub.user32.dll_GetSystemMetrics
add edi, eax
mov eax, ebx
xor al, 1
test al, al
je 0x45a571
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0xc0]
test al, al
je 0x45a571
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 0x45a588
adc eax, 0
push eax
push 0
call sub.user32.dll_GetSystemMetrics
sub eax, dword [ebp - 0x2c]
sar eax, 1
jns 0x45a59a
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 0x45a657
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0x58]
call fcn.00439638
and al, byte [ebp - 0x5f]
je 0x45a60d
mov eax, dword [esi]
mov eax, dword [eax + 0x48]
mov edx, dword [esi]
mov dword [edx + 0x54], eax
jmp 0x45a657
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0x50]
call fcn.00439638
and al, byte [ebp - 0x5e]
je 0x45a62d
mov eax, dword [esi]
mov eax, dword [eax + 0x4c]
mov edx, dword [esi]
mov dword [edx + 0x54], eax
jmp 0x45a657
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0x48]
and al, byte [ebp - 0x5d]
je 0x45a657
mov eax, dword [esi]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0x30c]
test al, al
je 0x45a657
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 0x45a682
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 [0x61c650], 0
je 0x45a698
mov eax, dword [esi]
mov eax, dword [eax + 0x2c]
mov edx, ebx
call dword [0x61c650]
cmp byte [ebp + 8], 0
je 0x45a6a5
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 0x45a6ce
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 0x45a70e
push 0
mov eax, dword [esi]
mov eax, dword [eax + 0x2c]
push eax
mov eax, dword [0x61ce60]
push eax
mov eax, dword [0x61ce5c]
push eax
call sub.user32.dll_PostMessageA
mov eax, dword [esi]
push eax
push 0x455c64
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 0x45a75f
lea eax, [ebp - 0xfc]
mov edx, 0xe
call fcn.00406820
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.00406820
lea eax, [ebp - 0x14]
call fcn.0040a73c
ret