Function at 0x4545d8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, dword [ebx + 0x5c]
test esi, esi
je 0x454629
cmp dword [ebp + 0x10], 0xfffffffe
je 0x454629
mov eax, esi
mov edx, dword [eax + 0x1a0]
call dword [edx]
mov edx, 0x1a4
call fcn.00402524
xor eax, eax
mov dword [ebx + 0x5c], eax
mov al, byte [ebx + 0x43b]
test al, al
je 0x454629
mov ecx, eax
mov eax, ebx
mov dl, 0xfe
call fcn.00461fa4
jmp 0x45506e
movsx eax, byte [ebx + 0x442]
mov edx, dword [0x4be4fc]
movsx eax, byte [edx + eax - 1]
mov edx, dword [0x4be9e0]
cmp byte [edx + eax + 9], 0
jne 0x454662
mov eax, dword [0x4be784]
cmp byte [eax + 0x189a], 0xa
jne 0x454662
mov eax, dword [0x4be784]
mov byte [eax + 0x189a], 0
mov eax, dword [0x4be784]
cmp byte [eax + 0x189a], 7
jne 0x454685
cmp byte [ebx + 0x43d], 0
jne 0x454685
mov eax, dword [0x4be784]
mov byte [eax + 0x189a], 0
mov byte [ebp - 0x10], 0
mov eax, dword [0x4be530]
cmp byte [eax], 0
jbe 0x4546b3
push 0
mov eax, dword [0x4be530]
movzx eax, byte [eax]
add eax, 0x7f
push eax
push 0x111
mov eax, dword [0x4beb60]
mov eax, dword [eax]
push eax
call sub.user32.dll_SendMessageA
cmp byte [ebx + 0x43b], 0
jne 0x454863
mov dl, byte [ebx + 0x442]
movsx eax, dl
mov ecx, dword [0x4be4fc]
cmp byte [ecx + eax - 1], 0xff
je 0x454721
mov ecx, dword [0x4be5f4]
cmp dword [ecx + eax*4 - 4], 0
jne 0x454721
lea ecx, [ebx + 0x15c]
mov eax, edx
mov dl, 1
call fcn.004a7190
mov eax, dword [0x4be9c0]
mov word [eax], 0
cmp byte [ebx + 0x449], 0
jne 0x454721
mov eax, ebx
call fcn.0046fbdc
add esp, 0xfffffff8
fistp qword [esp]
wait
mov dx, word [ebx + 0x424]
mov al, 1
call fcn.00425aac
cmp dword [ebp + 0x10], 0
jne 0x454805
cmp dword [ebp - 8], 0xffffffff
je 0x454745
xor eax, eax
mov al, byte [ebx + 0x88]
mov edx, dword [ebp - 8]
mov dword [ebx + eax*4 + 0x8c], edx
jmp 0x4547ac
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xf]
push eax
push 0
push 0
lea ecx, [ebx + 0x15c]
mov dl, byte [ebx + 0x442]
mov eax, dword [ebp - 4]
call fcn.004a5098
mov edx, dword [0x4be7b0]
mov dword [edx], eax
movsx eax, byte [ebx + 0x442]
mov edx, dword [0x4be4fc]
cmp byte [edx + eax - 1], 0xff
jne 0x454795
xor eax, eax
mov al, byte [ebx + 0x88]
mov edx, dword [ebp - 8]
mov dword [ebx + eax*4 + 0x8c], edx
jmp 0x4547ac
xor eax, eax
mov al, byte [ebx + 0x88]
mov edx, dword [0x4be7b0]
mov edx, dword [edx]
mov dword [ebx + eax*4 + 0x8c], edx
xor eax, eax
mov al, byte [ebx + 0x88]
mov eax, dword [ebx + eax*4 + 0x8c]
cmp eax, 0xfffffffd
ja 0x45506e
movsx edx, byte [ebx + 0x442]
mov ecx, dword [0x4be4fc]
cmp byte [ecx + edx - 1], 0xff
jne 0x4547ed
lea eax, [ebx + 0x15c]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.004a2f58
mov dword [ebp - 0xc], eax
jmp 0x454863
xor edx, edx
mov dl, byte [ebx + 0x88]
lea edx, [ebx + 0x15c]
call fcn.004a25d8
mov dword [ebp - 0xc], eax
jmp 0x454863
cmp dword [ebp + 0x10], 0xfffffffe
je 0x454863
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
movsx eax, byte [ebx + 0x442]
mov edx, dword [0x4be4fc]
cmp byte [edx + eax - 1], 0xff
jne 0x454846
lea eax, [ebx + 0x15c]
mov cl, 1
mov edx, dword [ebp - 0xc]
call fcn.004a299c
xor edx, edx
mov dl, byte [ebx + 0x88]
mov dword [ebx + edx*4 + 0x8c], eax
jmp 0x454863
lea edx, [ebx + 0x15c]
mov eax, dword [ebp - 0xc]
call fcn.004a2578
xor edx, edx
mov dl, byte [ebx + 0x88]
mov dword [ebx + edx*4 + 0x8c], eax
mov eax, dword [0x4be5f0]
cmp dword [eax], 0
jne 0x454878
mov eax, dword [0x4be5f0]
mov dword [eax], fcn.00453100
cmp word [ebx + 0x56], 0xc8
jge 0x4548a1
mov ax, 0x12c
mov word [ebx + 0x56], ax
push 2
movsx eax, ax
push eax
movsx eax, word [ebx + 0x54]
push eax
push 0
push 0
push 0
mov eax, dword [ebx]
push eax
call sub.user32.dll_SetWindowPos
mov eax, dword [0x4be784]
cmp dword [eax + 0xa54], 0
jne 0x4548c7
movsx eax, word [ebx + 0x56]
mov ecx, 3
cdq
idiv ecx
mov edx, dword [0x4be784]
mov dword [edx + 0xa54], eax
movsx edx, word [ebx + 0x56]
sub edx, 0x16
mov eax, dword [0x4be324]
movsx eax, word [eax]
sub edx, eax
mov eax, dword [0x4be784]
mov eax, dword [eax + 0xa54]
call fcn.004aa570
mov esi, eax
mov eax, dword [0x4be784]
mov dword [eax + 0xa54], esi
mov eax, dword [0x4be784]
mov eax, esi
mov edx, 0x3c
call fcn.004aa578
mov edx, dword [0x4be784]
mov dword [edx + 0xa54], eax
mov eax, dword [0x4be784]
mov ax, word [eax + 0xa54]
mov word [ebx + 0x58], ax
mov eax, dword [0x4be6d4]
push eax
mov eax, dword [ebx]
push eax
call sub.user32.dll_GetClientRect
mov eax, dword [0x4be6d4]
mov eax, dword [eax + 8]
mov edx, dword [0x4be784]
mov dword [edx + 0xa50], eax
push 0x7f02
push 0
call sub.user32.dll_LoadCursorA
push eax
call sub.user32.dll_SetCursor
cmp dword [ebx + 0x4c], 0
je 0x454991
mov eax, ebx
call fcn.00451ec8
cmp byte [ebp + 0xc], 0
je 0x454981
lea eax, [ebx + 0x1fb]
call fcn.004aed10
mov edx, eax
lea eax, [ebx + 0x2fb]
call fcn.004b81b0
push 0
mov eax, dword [ebx + 0x4c]
push eax
call sub.user32.dll_ShowWindow
jmp 0x454ab7
xor eax, eax
mov dword [ebx + 0x60], eax
mov byte [ebx + 0x2fb], 0
push 0
mov eax, dword [0x4bf704]
push eax
push 0x1e240
mov eax, dword [ebx]
push eax
mov eax, dword [0x4be784]
mov eax, dword [eax + 0xa54]
sub eax, 0xf
sub eax, 2
push eax
mov eax, dword [0x4be784]
mov eax, dword [eax + 0xa50]
push eax
push 0xf
push 0
push 0x40010409
push 0
push 0x455078
push 0x200
call sub.user32.dll_CreateWindowExA
mov esi, eax
mov dword [ebx + 0x4c], esi
test esi, esi
jne 0x454a0c
call sub.kernel32.dll_GetLastError_1
call fcn.004ae200
mov eax, dword [0x4bedb0]
mov edx, 1
call fcn.004b12a8
jmp 0x45506e
push 0x447b10
push 0xfffffffffffffffc
mov eax, dword [ebx + 0x4c]
push eax
call sub.user32.dll_SetWindowLongA
mov edx, dword [0x4be9b0]
mov dword [edx], eax
lea eax, [ebp - 0x30]
mov edx, 0x18
call fcn.004066e4
mov dword [ebp - 0x30], 0xf
movzx edi, byte [ebx + 0x43d]
add edi, 6
test edi, edi
jl 0x454a8f
inc edi
xor esi, esi
mov eax, dword [0x4be784]
add eax, 0x1dea
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
movsx eax, word [eax]
mov dword [ebp - 0x28], eax
mov eax, esi
call fcn.00451d18
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
cmp esi, 2
jne 0x454a7a
mov dword [ebp - 0x2c], 1
lea ecx, [ebp - 0x30]
mov eax, dword [ebx + 0x4c]
mov edx, esi
call fcn.00410120
inc esi
add dword [ebp - 0x18], 2
dec edi
jne 0x454a56
mov eax, dword [0x4be784]
cmp byte [eax + 0x189f], 0
jbe 0x454ab7
call fcn.00451c70
mov edx, dword [0x4be8d4]
mov edx, dword [edx]
mov eax, dword [ebx + 0x4c]
mov ecx, 1
call fcn.0040ffb8
lea eax, [ebx + 0x1fb]
mov edx, dword [ebp - 4]
call fcn.004b81b0
mov al, byte [ebx + 0x43b]
test al, al
je 0x454b22
cmp dword [ebx + 0x84], 0
je 0x454b22
movsx eax, al
mov edx, dword [ebx + 0x84]
cmp dword [edx + eax*4 + 0x1ac], 0
je 0x454b22
push 0x455088
lea eax, [ebx + 0x1fb]
push eax
call sub.kernel32.dll_lstrcatA
movsx eax, byte [ebx + 0x43b]
mov edx, dword [ebx + 0x84]
mov eax, dword [edx + eax*4 + 0x1ac]
call fcn.00484d54
push eax
lea eax, [ebx + 0x1fb]
push eax
call sub.kernel32.dll_lstrcatA
xor eax, eax
mov al, byte [ebx + 0x88]
mov dl, byte [ebp + 8]
mov byte [ebx + eax + 0x10c], dl
movsx eax, byte [ebx + 0x442]
mov edx, dword [0x4be4fc]
cmp byte [edx + eax - 1], 0xff
jne 0x454ba4
cmp byte [ebx + 0x88], 0
jne 0x454ba4
cmp dword [ebp + 0x10], 0
jne 0x454ba4
cmp byte [ebx + 0x43b], 0
jne 0x454ba4
mov eax, dword [ebp - 4]
call fcn.004b8144
cmp eax, 3
jg 0x454ba4
push 0
push 0
push 0
push 0
push 0
push 0x10
push 1
push 0
push 0
push 0
push 0
push 0xc
push 0
push 0
push 0xffffffffffffffff
mov ax, 0x336
call fcn.004aa600
mov edx, eax
mov cl, byte [ebx + 0x442]
mov eax, dword [ebx + 0x4c]
call fcn.00453100
cmp byte [ebx + 0x88], 0
jbe 0x454c99
cmp byte [ebx + 0x43b], 0
je 0x454bc4
cmp dword [ebp + 0x10], 0xfffffffe
jne 0x454c99
mov al, byte [ebx + 0x442]
movsx edx, al
mov ecx, dword [0x4be4fc]
cmp byte [ecx + edx - 1], 0xff
jne 0x454c1d
push 0
push 0
push 0
push 0
push 0
push 0x10
push 1
movzx esi, byte [ebx + 0x88]
mov dl, byte [ebx + esi + 0x10b]
push edx
push 0
push 0
push 0
mov edx, dword [ebx + esi*4 + 0x88]
push edx
push 0
push 0
push 0xffffffffffffffff
mov ecx, eax
mov edx, dword [0x4bee58]
mov eax, dword [ebx + 0x4c]
call fcn.00453100
jmp 0x454c99
mov eax, dword [ebp - 0xc]
call fcn.004aef80
movsx eax, byte [ebx + 0x442]
mov edx, dword [0x4becf0]
movzx eax, word [edx + eax*2 + 0x54]
mov dword [ebp - 0x34], eax
fild dword [ebp - 0x34]
fmulp st(1)
fadd dword [0x45508c]
mov eax, dword [0x4be4c4]
fistp qword [eax]
wait
push 0
push 0
push 0
push 0
push 0
push 0x10
push 1
xor eax, eax
mov al, byte [ebx + 0x88]
mov dl, byte [ebx + eax + 0x10b]
push edx
push 0
push 0
push 0
mov eax, dword [ebx + eax*4 + 0x88]
push eax
mov eax, dword [0x4be4c4]
push dword [eax + 4]
push dword [eax]
push 0xffffffffffffffff
mov cl, byte [ebx + 0x442]
mov edx, dword [0x4bee58]
mov eax, dword [ebx + 0x4c]
call fcn.00453100
cmp dword [ebp + 0x10], 0xfffffffe
jne 0x454cb3
mov edx, dword [ebx + 0x4c]
mov eax, dword [ebx + 0x5c]
mov ecx, dword [eax + 0x1a0]
call dword [ecx + 0x1c]
jmp 0x454f20
cmp byte [ebx + 0x43b], 0
jne 0x454f20
mov eax, dword [0x4bed14]
mov byte [eax], 1
mov eax, dword [0x4be450]
cmp byte [eax], 0
je 0x454cda
mov eax, dword [0x4bea24]
mov byte [eax], 1
mov dl, byte [ebx + 0x442]
movsx eax, dl
mov ecx, dword [0x4be4fc]
mov al, byte [ecx + eax - 1]
cmp al, 0xfd
je 0x454d13
movsx ecx, byte [ebx + 0x442]
mov esi, dword [0x4be4fc]
cmp al, 0xfc
je 0x454d13
movsx ecx, byte [ebx + 0x442]
mov esi, dword [0x4be4fc]
cmp al, 0xfb
jne 0x454d3f
mov eax, dword [ebp - 0xc]
push eax
xor eax, eax
mov al, byte [ebx + 0x88]
mov eax, dword [ebx + eax*4 + 0x8c]
push eax
lea eax, [ebx + 0x15c]
push eax
mov al, byte [ebp + 8]
push eax
mov eax, edx
mov edx, dword [ebx + 0x4c]
mov ecx, dword [ebp - 4]
call fcn.0041fc1c
movsx eax, byte [ebx + 0x442]
mov edx, dword [0x4be4fc]
mov al, byte [edx + eax - 1]
cmp al, 1
je 0x454d76
movsx edx, byte [ebx + 0x442]
mov ecx, dword [0x4be4fc]
cmp al, 2
je 0x454d76
movsx edx, byte [ebx + 0x442]
mov ecx, dword [0x4be4fc]
cmp al, 3
jne 0x454db3
lea eax, [ebx + 0x15c]
xor edx, edx
call fcn.004a3734
mov eax, dword [ebp - 0xc]
push eax
xor eax, eax
mov al, byte [ebx + 0x88]
mov eax, dword [ebx + eax*4 + 0x8c]
push eax
lea eax, [ebx + 0x15c]
push eax
mov al, byte [ebp + 8]
push eax
mov edx, dword [ebx + 0x4c]
mov al, byte [ebx + 0x442]
mov ecx, dword [ebp - 4]
call fcn.004a3a74
mov al, byte [ebx + 0x442]
movsx edx, al
mov ecx, dword [0x4be4fc]
cmp byte [ecx + edx - 1], 0xff
jne 0x454ef0
push 0
lea edx, [ebx + 0x15c]
push edx
mov dl, byte [ebp + 8]
push edx
push 0
push 0
push 0
lea edx, [ebp - 0xe]
push edx
mov edx, dword [ebx + 0x4c]
mov ecx, dword [ebp - 0xc]
call fcn.004a40a4
movsx eax, byte [ebx + 0x442]
mov edx, dword [0x4be5f4]
cmp dword [edx + eax*4 - 4], 0
je 0x454ef0
movsx eax, byte [ebx + 0x442]
mov edx, dword [0x4be5f4]
mov esi, dword [edx + eax*4 - 4]
add esi, 0x10
add esi, 0x10
mov byte [ebp - 0x11], 0
jmp 0x454ed8
lea eax, [esi + 3]
mov eax, dword [eax]
and eax, 0xffffff
xor edx, edx
mov dl, byte [ebx + 0x88]
mov edx, dword [ebx + edx*4 + 0x8c]
dec eax
cmp edx, eax
jne 0x454e51
lea eax, [esi + 6]
mov ax, word [eax]
cmp ax, word [ebp - 0xe]
je 0x454e5e
xor eax, eax
mov al, byte [ebx + 0x88]
cmp edx, 0xc
jne 0x454e7d
mov eax, dword [esi]
and eax, 0xffffff
dec eax
push eax
push 0
lea ecx, [ebx + 0x15c]
mov dl, byte [ebx + 0x442]
mov eax, dword [ebx + 0x4c]
call fcn.004a1760
add esi, 8
cmp dword [ebx + 0x60], 0x1f4
jl 0x454eb4
cmp byte [ebp - 0x11], 0
jne 0x454eb4
mov ax, 0x136
call fcn.004aa600
mov edx, eax
mov eax, dword [0x4bec98]
call fcn.004b81b0
mov eax, dword [0x4bec98]
mov dl, 1
call fcn.004ad8ec
mov byte [ebp - 0x11], 1
cmp byte [ebp - 0x11], 0
je 0x454ed8
mov eax, dword [ebx + 0x60]
mov ecx, 0x32
cdq
idiv ecx
test edx, edx
jne 0x454ed8
call fcn.004ae0a4
mov eax, dword [0x4bed48]
cmp byte [eax], 0
jne 0x454ee1
cmp dword [esi], 0
jne 0x454e27
cmp byte [ebp - 0x11], 0
je 0x454ef0
call fcn.004adbe0
mov byte [ebp - 0x10], 1
mov eax, dword [0x4bed14]
mov byte [eax], 0
mov eax, dword [0x4bea24]
cmp byte [eax], 0
je 0x454f20
mov eax, dword [0x4bea24]
mov byte [eax], 0
mov eax, dword [0x4beb4c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [0x4beb4c]
xor edx, edx
mov dword [eax], edx
mov ecx, dword [0x4be784]
movzx ecx, byte [ecx + 0x189a]
mov edx, 0x451d5c
mov eax, dword [ebx + 0x4c]
call fcn.00410218
cmp byte [ebp + 0xc], 0
jne 0x454f47
xor eax, eax
mov dword [ebx + 0x74], eax
jmp 0x454f88
mov edi, dword [ebx + 0x60]
dec edi
test edi, edi
jl 0x454f88
inc edi
xor esi, esi
mov eax, dword [0x4bedb0]
push eax
push 0xff
mov eax, dword [ebx + 0x4c]
xor ecx, ecx
mov edx, esi
call fcn.004101bc
lea eax, [ebx + 0x2fb]
push eax
mov eax, dword [0x4bedb0]
push eax
call sub.kernel32.dll_lstrcmpA
test eax, eax
jne 0x454f84
mov dword [ebx + 0x74], esi
jmp 0x454f88
inc esi
dec edi
jne 0x454f52
push 3
mov edx, dword [ebx + 0x74]
mov eax, dword [ebx + 0x4c]
mov ecx, 3
call fcn.0041018c
mov edx, dword [ebx + 0x74]
mov eax, dword [ebx + 0x4c]
xor ecx, ecx
call fcn.004100a0
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
push eax
call sub.user32.dll_SetCursor
mov eax, dword [0x4be784]
cmp byte [eax + 0xa45], 0
je 0x454fd0
mov eax, dword [ebx + 0x4c]
push eax
call sub.user32.dll_SetFocus
push 5
mov eax, dword [ebx + 0x4c]
push eax
call sub.user32.dll_ShowWindow
push 8
push 0xac
mov eax, dword [0x4be75c]
mov eax, dword [eax]
push eax
call sub.user32.dll_CheckMenuItem
mov eax, dword [ebx]
call fcn.00456ac0
mov ax, word [ebx + 0x424]
call fcn.0042b734
cmp dword [ebx + 0x1e4], 0
jne 0x455020
mov eax, dword [0x4be784]
cmp byte [eax + 0x18ae], 0
je 0x455020
mov eax, ebx
call fcn.004538e0
cmp dword [ebx + 0x1e4], 0
je 0x45504a
cmp byte [ebx + 0x1f6], 0
je 0x455039
mov byte [ebx + 0x1f7], 1
push 0
push 0xc8
push 0x10
mov eax, dword [ebx]
push eax
call sub.user32.dll_SetTimer
cmp byte [ebp - 0x10], 0
je 0x45506e
mov eax, 0x96
call fcn.004ae058
mov eax, dword [0x4be810]
mov byte [eax], 3
push 0
push 0
mov eax, dword [ebx]
push eax
call sub.user32.dll_InvalidateRect
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc