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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x484
mov eax, dword [0x59c6b8]
test eax, eax
push ebx
push esi
push edi
mov edi, edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ecx
jne 0x4fc51b
test edi, edi
mov ebx, 1
mov dword [0x59c6b8], ebx
je 0x4fc4d3
cmp byte [edi], 0
je 0x4fc4d3
mov eax, edi
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4fb777
sub eax, esi
cmp eax, 0x3b5
jbe 0x4fb78d
mov byte [edi + 0x3b5], dl
push 0
lea edx, [esp + 0x60]
call fcn.00538310
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
je 0x4fc4d3
mov ecx, dword [esi + 0xbb4]
call fcn.004dbea0
test eax, eax
je 0x4fc4d3
mov eax, dword [esi + 0x700]
add eax, 0xfffffffd
cmp eax, 6
ja case.0x4fb7ce.5
movzx eax, byte [eax + 0x4fc530]
jmp dword [eax*4 + 0x4fc524]
mov ecx, dword [esi + 0xbb4]
mov ecx, dword [ecx]
jmp 0x4fb7f9
mov eax, dword [esi + 0x73c]
test eax, eax
jne 0x4fb7f1
cmp dword [esi + 0x704], ebx
jne case.0x4fb7ce.5
mov edx, dword [esi + 0xbb4]
mov ecx, dword [edx]
lea edx, [esp + 0x5c]
push 0
mov dword [esp + 0x1c], ecx
call fcn.00538310
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
je 0x4fc4d3
mov eax, dword [esi + 0x85c]
test eax, eax
je 0x4fc4d3
mov eax, dword [esi + 0x6c8]
test eax, eax
je 0x4fb868
mov ecx, dword [eax + 0x44]
test ecx, ecx
je 0x4fb868
push 0x59b624
push edi
call fcn.00572b46
add esp, 8
test eax, eax
jne 0x4fb868
mov eax, dword [esi + 0x6c8]
mov ecx, dword [eax + 0x44]
mov edx, dword [ecx]
push 0x59b624
push edx
call fcn.00572b46
add esp, 8
test eax, eax
je 0x4fc4d3
mov eax, dword [0x5a1540]
test eax, eax
jne 0x4fb883
mov eax, dword [0x5a153c]
test eax, eax
je 0x4fb8b1
mov eax, dword [0x59c6a8]
test eax, eax
je 0x4fb8b1
lea edx, [esp + 0xa8]
mov eax, edi
sub edx, edi
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4fb890
mov eax, dword [esi + 0x748]
push eax
push 2
xor edx, edx
lea ecx, [esp + 0xb0]
call fcn.0052f000
mov eax, dword [0x589a48]
test eax, eax
mov dword [esp + 0x58], 0
je 0x4fb9df
mov eax, dword [0x59c698]
test eax, eax
je 0x4fb9df
mov ecx, dword [0x59c694]
mov edx, dword [0x59c69c]
mov edi, dword [0x589b90]
mov ebx, dword [0x59c690]
mov dword [esp + 0x48], ecx
mov ecx, dword [0x589b94]
mov dword [esp + 0x40], eax
mov eax, dword [0x59c6a0]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0xa8]
mov dword [esp + 0x44], edx
sub ecx, eax
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
test dl, dl
jne 0x4fb917
mov ecx, dword [esp + 0x18]
push 0
lea edx, [esp + 0xac]
call fcn.00490750
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x40]
mov dword [0x59c694], edx
mov edx, dword [esp + 0x3c]
mov dword [0x59c698], eax
mov eax, dword [esp + 0x2c]
mov dword [0x589b90], edi
mov dword [0x59c690], ebx
mov dword [0x59c69c], ecx
mov dword [0x59c6a0], edx
mov dword [0x589b94], eax
je 0x4fb9db
mov eax, dword [esi + 8]
test eax, eax
je 0x4fb987
mov ecx, dword [esp + 0x18]
mov edx, esi
call fcn.00486fc0
mov eax, dword [0x589b78]
test eax, eax
je 0x4fb9be
mov eax, dword [esi + 0x10]
cmp eax, 1
jne 0x4fb9a1
mov ecx, eax
call fcn.0041c8e0
jmp 0x4fb9be
cmp eax, 2
jne 0x4fb9be
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0xbb4]
push edx
lea ecx, [esi + 0x1c]
mov edx, 1
call fcn.00517a40
mov esi, dword [esi + 4]
test esi, esi
jle 0x4fb9c9
dec esi
mov dword [ebp + 8], esi
mov dword [0x59c694], 0
mov dword [esp + 0x58], 1
mov esi, dword [esp + 0x10]
mov edx, dword [0x59c690]
test edx, edx
mov byte [esp + 0x88], 0
jle 0x4fba25
cmp edx, 0x19
jle 0x4fba01
mov edx, 0x19
mov dword [0x59c690], edx
mov ecx, edx
mov ebx, ecx
shr ecx, 2
mov eax, 0x20202020
lea edi, [esp + 0x88]
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov byte [esp + edx + 0x88], 0
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x85c]
xor ebx, ebx
push eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
test edi, edi
mov dword [esp + 0x2c], edi
je 0x4fc4d3
mov ecx, dword [esi + 0x96c]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x30], eax
mov eax, dword [0x589b90]
xor ecx, ecx
cmp eax, ecx
jg 0x4fba86
mov ecx, edi
call fcn.004f8fa0
mov dword [esp + 0x4c], eax
xor ecx, ecx
mov edx, dword [esi + 0x6f8]
sub edx, dword [esi + 0x6fc]
jne 0x4fba9c
mov dword [esp + 0x3c], 1
mov eax, dword [0x59c688]
inc eax
cmp eax, 0x2328
mov dword [0x59c688], eax
jle 0x4fbab8
mov dword [0x59c688], 1
mov eax, dword [esp + 0x64]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x24], ecx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4fbad3
mov ecx, dword [esp + 0x14]
sub eax, edx
add eax, ecx
cmp ecx, eax
mov dword [esp + 0x54], eax
jae 0x4fc1f9
mov edi, edi
xor eax, eax
mov ecx, 0xf9
lea edi, [esp + 0xa8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x4fbbe7
mov eax, dword [0x59c69c]
test eax, eax
je 0x4fbbcb
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x728]
cmp eax, 1
je 0x4fbb41
cmp eax, 2
jne 0x4fbbcb
mov eax, dword [0x59bb8c]
test eax, eax
je 0x4fbbcb
mov edx, 1
lea ecx, [esp + 0xa8]
call fcn.00522930
mov al, byte [esp + 0xa8]
test al, al
je 0x4fbb92
lea edi, [esp + 0xa8]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4fbb65
mov dx, word [0x575258]
lea eax, [esp + 0xa8]
mov word [edi], dx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4fbb81
sub eax, edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4fbb98
lea edi, [esp + 0xa8]
sub eax, esi
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4fbbb0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4fbc62
mov eax, dword [esp + 0x14]
lea edx, [esp + 0xa8]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4fbbd8
jmp 0x4fbc62
mov eax, dword [0x59c690]
test eax, eax
je 0x4fbc4b
xor eax, eax
jmp 0x4fbc00
mov cl, byte [esp + eax + 0x88]
mov byte [esp + eax + 0xa8], cl
inc eax
test cl, cl
jne 0x4fbc00
mov eax, dword [esp + 0x14]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4fbc20
lea edi, [esp + 0xa8]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4fbc31
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4fbc62
mov eax, dword [esp + 0x14]
lea edx, [esp + 0xa8]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4fbc58
lea eax, [esp + 0xa8]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4fbc70
mov edi, dword [0x589b90]
sub eax, edx
dec eax
test edi, edi
mov dword [esp + 0x48], eax
jg 0x4fbf2a
xor edi, edi
test eax, eax
mov dword [esp + 0x1c], 2
jl 0x4fbee1
mov ebx, dword [esp + 0x2c]
mov eax, dword [0x59f66c]
test eax, eax
je 0x4fbd88
lea eax, [esp + 0xa8]
push edi
push eax
call fcn.00565618
add esp, 8
cmp eax, 1
je 0x4fbcce
cmp eax, 2
jne 0x4fbd88
mov dword [esp + 0x40], 1
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4fbe42
mov esi, dword [esp + 0x20]
cmp dword [esp + 0x44], esi
mov dword [esp + 0x34], 0
je 0x4fbe42
mov ecx, dword [esp + 0x30]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4fbd13
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esp + 0x44], esi
test esi, esi
mov esi, dword [esp + 0x10]
je 0x4fbe1b
mov eax, dword [esi + 0x9d8]
xor edx, edx
cmp eax, 0x190
setle dl
lea ecx, [esi + 0x970]
push ecx
push 0
push 0
push 0
push 0
dec edx
and edx, 0xfffffed4
add edx, 0x2bc
mov eax, edx
mov edx, dword [esi + 0x9dc]
push edx
push 0
push 0
push 0
push eax
mov eax, dword [esi + 0x9d4]
push 0
push 0
push 0
neg eax
push eax
call dword [sym.imp.GDI32.dll_CreateFontA]
test eax, eax
mov dword [esp + 0x38], eax
je 0x4fbe12
mov ecx, eax
push ecx
jmp 0x4fbe2a
movzx eax, byte [esp + edi + 0xa8]
lea esi, [esp + edi + 0xa8]
add eax, 0xfffffffe
cmp eax, 0x1d
mov dword [esp + 0x40], 0
ja case.0x4fbdb2.4
movzx ecx, byte [eax + 0x4fc54c]
jmp dword [ecx*4 + 0x4fc538]
mov eax, dword [esp + 0x20]
xor edx, edx
test eax, eax
sete dl
mov dword [esp + 0x34], 1
mov dword [esp + 0x20], edx
jmp case.0x4fbdb2.22
mov ecx, dword [0x594088]
call fcn.00431e50
push eax
push 0
lea eax, [esp + 0x8c]
push eax
lea edx, [esp + 0x7c]
mov ecx, esi
call fcn.004f8d50
add edi, eax
jmp case.0x4fbdb2.22
mov dword [esp + 0x20], 0
mov dword [esp + 0x34], 1
jmp case.0x4fbdb2.22
mov edx, dword [esi + 0x96c]
push edx
jmp 0x4fbe2a
mov eax, dword [esi + 0x96c]
mov dword [esp + 0x38], 0
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, ebx
mov dword [esp + 0x30], eax
call fcn.004f8fa0
mov dword [esp + 0x4c], eax
jmp 0x4fbe46
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4fbe7a
lea ecx, [esp + 0x7c]
push ecx
push 1
lea edx, [esp + edi + 0xb0]
push edx
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPointA]
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x1c]
sub eax, edx
add ecx, eax
mov dword [esp + 0x1c], ecx
jmp case.0x4fbdb2.22
cmp dword [esi + 0x700], 9
jne 0x4fbea0
cmp byte [esp + edi + 0xa8], 9
jne 0x4fbea0
mov ecx, dword [esp + 0x1c]
push ecx
mov edx, 2
mov ecx, esi
call fcn.004f8f60
jmp 0x4fbec6
lea edx, [esp + 0x74]
push edx
push 1
lea eax, [esp + edi + 0xb0]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPointA]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x1c]
sub ecx, edx
add eax, ecx
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x6c]
cmp dword [esp + 0x1c], edx
jge 0x4fbee1
mov eax, dword [esp + 0x48]
inc edi
cmp edi, eax
jle 0x4fbca2
dec edi
cmp edi, 0xa
jge 0x4fbeec
mov edi, 0xa
mov eax, dword [0x59f66c]
test eax, eax
je 0x4fbf0c
lea eax, [esp + 0xa8]
push edi
push eax
call fcn.00565618
add esp, 8
cmp eax, 1
jne 0x4fbf0c
dec edi
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x4fbf26
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4fbf26
mov eax, dword [esp + 0x50]
cmp edi, eax
jg 0x4fbf26
mov edi, eax
mov eax, dword [esp + 0x48]
cmp edi, eax
jg 0x4fbf32
mov esi, edi
jl 0x4fbf3b
mov ecx, dword [esp + 0x54]
jmp 0x4fc080
mov eax, edi
cdq
and edx, 3
add eax, edx
mov edx, dword [esp + 0x20]
sar eax, 2
mov ebx, edi
sub ebx, eax
mov eax, dword [0x59f66c]
test eax, eax
mov dword [esp + 0x70], edi
mov dword [esp + 0x1c], edx
je 0x4fbf78
lea eax, [esp + 0xa8]
push edi
push eax
call fcn.00565618
add esp, 8
cmp eax, 2
jne 0x4fbf78
lea esi, [ebx - 1]
cmp esi, ebx
jl 0x4fbfd0
lea esp, [esp]
cmp byte [esp + esi + 0xa8], 0x20
je 0x4fbfcc
mov eax, dword [0x59f66c]
test eax, eax
je 0x4fbfae
lea ecx, [esp + 0xa8]
push esi
push ecx
call fcn.00565618
add esp, 8
cmp eax, 1
je 0x4fbfc7
cmp eax, 2
je 0x4fbfc7
cmp byte [esp + esi + 0xa8], 2
jne 0x4fbfc7
mov eax, dword [esp + 0x1c]
xor edx, edx
test eax, eax
sete dl
mov dword [esp + 0x1c], edx
dec esi
cmp esi, ebx
jge 0x4fbf80
cmp esi, ebx
jg 0x4fbfd4
mov esi, edi
jmp 0x4fbfea
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x20], eax
je 0x4fbfea
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], 1
mov eax, dword [0x59f66c]
test eax, eax
je 0x4fc00e
lea eax, [esp + 0xa8]
push esi
push eax
call fcn.00565618
add esp, 8
cmp eax, 1
jne 0x4fc00e
test esi, esi
jle 0x4fc00e
dec esi
mov ecx, dword [esp + 0x28]
test ecx, ecx
mov eax, dword [0x59c690]
jne 0x4fc050
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4fc046
mov eax, dword [esp + 0x50]
cmp esi, eax
jge 0x4fc02e
lea esi, [eax - 1]
mov ecx, dword [esp + 0x14]
mov byte [esp + esi + 0xa9], 0
sub esi, eax
lea edx, [ecx + esi + 1]
mov dword [esp + 0x14], edx
jmp 0x4fc084
mov byte [esp + esi + 0xa9], 0
jmp 0x4fc078
test eax, eax
mov byte [esp + esi + 0xa9], 0
je 0x4fc076
lea edx, [esi + 1]
cmp edx, eax
jg 0x4fc076
dec eax
mov dword [0x59c690], eax
mov byte [esp + eax + 0x88], 0
jmp 0x4fc1e3
sub esi, eax
mov eax, dword [esp + 0x14]
lea ecx, [eax + esi + 1]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x24]
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x64]
mov ebx, dword [esp + 0x10]
push edx
push eax
push ecx
lea edx, [esp + 0xb4]
mov ecx, ebx
call fcn.004f9000
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x4fc117
mov eax, dword [ebx + 0x6a8]
test eax, eax
je 0x4fc117
mov eax, dword [0x59c6a4]
test eax, eax
jne 0x4fc117
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x54]
jae 0x4fc0f9
mov edx, eax
jmp 0x4fc0d0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4fc0d0
lea edi, [esp + 0xa8]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4fc0e1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [esp + 0xa8]
test al, al
je 0x4fc117
mov edx, dword [esp + 0x24]
push edx
lea edx, [esp + 0xac]
mov ecx, ebx
call fcn.004c5150
xor edx, edx
mov ecx, ebx
mov dword [esp + 0x24], 0
call fcn.0041f670
mov eax, dword [0x59c6a8]
mov esi, 1
cmp eax, esi
jne 0x4fc176
cmp dword [ebx + 0x700], 2
jne 0x4fc176
mov eax, dword [ebx + 0x764]
test eax, eax
jne 0x4fc176
mov dword [ebx + 0x764], 0x3e8
mov eax, dword [0x5990d0]
test eax, eax
jne 0x4fc176
mov eax, dword [0x5a1b00]
push 0
push 0x64
push 0x8b
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x5990d0], eax
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4fc1be
mov eax, dword [0x59c68c]
test eax, eax
jne 0x4fc1be
mov ecx, dword [esp + 0x18]
cmp ecx, dword [0x594268]
je 0x4fc1be
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x74]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x78]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov edx, dword [esp + 0x3c]
mov ecx, ebx
call fcn.004f99e0
mov eax, dword [0x589b90]
test eax, eax
jge 0x4fc1df
mov eax, dword [0x59c688]
inc eax
cmp eax, 0x2328
mov dword [0x59c688], eax
jle 0x4fc1df
mov dword [0x59c688], esi
inc dword [esp + 0x28]
mov edx, dword [esp + 0x54]
cmp dword [esp + 0x14], edx
jb 0x4fbaf0
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
test ebx, ebx
je 0x4fc210
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4fc297
mov ecx, dword [esp + 0x18]
cmp ecx, dword [0x594268]
je 0x4fc297
mov eax, dword [0x59c68c]
test eax, eax
mov esi, dword [esp + 0x10]
je 0x4fc289
mov edx, dword [esi + 0x85c]
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [0x59c68c]
inc eax
cmp eax, 3
mov dword [0x59c68c], eax
jl 0x4fc289
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x74]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x78]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
xor edx, edx
mov ecx, esi
mov dword [0x59c68c], 1
call fcn.004f99e0
mov edx, 1
mov ecx, esi
call fcn.005385e0
jmp 0x4fc2b7
mov esi, dword [esp + 0x10]
mov ecx, esi
xor edx, edx
call fcn.005385e0
mov eax, dword [0x589b78]
test eax, eax
je 0x4fc2b7
mov dword [0x59c694], 2
mov eax, dword [esi + 0x85c]
push edi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x589b94]
test eax, eax
mov ebx, dword [sym.imp.USER32.dll_IsWindowVisible]
je 0x4fc430
cmp dword [esi + 0x700], 3
je 0x4fc430
mov eax, dword [esi + 0x708]
cmp eax, 2
je 0x4fc3c4
cmp eax, 1
mov edi, dword [esp + 0x58]
jne 0x4fc305
test edi, edi
je 0x4fc3c4
cmp eax, 3
jne 0x4fc31b
test edi, edi
jne 0x4fc31b
mov eax, dword [0x59c6a8]
test eax, eax
je 0x4fc3c4
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x4fc383
mov edx, dword [esp + 0x18]
push edx
call ebx
test eax, eax
je 0x4fc383
mov eax, dword [0x589bd0]
test eax, eax
je 0x4fc3c4
mov eax, dword [0x589bec]
test eax, eax
je 0x4fc3c4
mov eax, dword [esp + 0x18]
cmp eax, dword [0x5a1b0c]
je 0x4fc3c4
test edi, edi
je 0x4fc36b
mov dword [esi + 0x708], 2
jmp 0x4fc3bd
mov eax, dword [0x59c6a8]
xor ecx, ecx
test eax, eax
sete cl
lea ecx, [ecx + ecx + 1]
mov dword [esi + 0x708], ecx
jmp 0x4fc3bd
test edi, edi
je 0x4fc393
mov dword [esi + 0x708], 2
jmp 0x4fc3a9
mov eax, dword [0x59c6a8]
xor edx, edx
test eax, eax
sete dl
lea edx, [edx + edx + 1]
mov dword [esi + 0x708], edx
mov eax, dword [esp + 0x18]
push eax
call ebx
test eax, eax
je 0x4fc3bd
xor edx, edx
mov ecx, esi
call fcn.00491a70
mov ecx, esi
call fcn.0051c6d0
mov eax, dword [esi + 0x708]
test eax, eax
je 0x4fc430
mov ecx, dword [esi + 0xbb4]
mov ecx, dword [ecx]
call fcn.005366c0
test eax, eax
je 0x4fc430
mov ecx, dword [eax + 0xa40]
test ecx, ecx
jne 0x4fc430
mov ecx, dword [esi + 0x708]
cmp ecx, 2
jne 0x4fc3fe
cmp dword [eax + 0x708], ecx
jne 0x4fc423
jmp 0x4fc430
cmp ecx, 1
jne 0x4fc414
mov edx, dword [eax + 0x708]
cmp edx, 2
je 0x4fc430
cmp edx, ecx
jne 0x4fc423
jmp 0x4fc430
cmp ecx, 3
jne 0x4fc423
mov edx, dword [eax + 0x708]
test edx, edx
jne 0x4fc430
mov dword [eax + 0x708], ecx
mov ecx, eax
call fcn.0051c6d0
mov eax, dword [0x59c694]
test eax, eax
je 0x4fc4a5
mov ecx, dword [esi + 0x714]
test ecx, ecx
jne 0x4fc4a5
mov ecx, dword [0x5903c8]
test ecx, ecx
jne 0x4fc4a5
cmp eax, 2
jne 0x4fc473
mov eax, dword [0x59b514]
test eax, eax
je 0x4fc473
mov edi, dword [esp + 0x18]
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x4fc477
push edi
call ebx
test eax, eax
je 0x4fc477
jmp 0x4fc49b
mov edi, dword [esp + 0x18]
cmp edi, dword [0x5a1b0c]
jne 0x4fc488
mov eax, dword [0x5a1b08]
test eax, eax
jne 0x4fc4a5
mov eax, dword [0x589b78]
test eax, eax
je 0x4fc4a5
mov eax, dword [esi + 0x70c]
test eax, eax
je 0x4fc4a5
mov ecx, 1
call fcn.0041c8e0
mov eax, dword [0x59c6a0]
test eax, eax
je 0x4fc4d3
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x710]
test eax, eax
je 0x4fc4d3
mov eax, edx
mov ecx, dword [eax + 0x714]
test ecx, ecx
jne 0x4fc4d3
mov ecx, dword [esp + 0x18]
xor edx, edx
call fcn.00486fc0
xor eax, eax
mov dword [0x589b90], 0x55
mov dword [0x59c690], eax
mov dword [0x59c694], eax
mov dword [0x59c698], eax
mov dword [0x59c69c], eax
mov dword [0x59c6a0], eax
mov dword [0x589b94], 1
mov dword [0x59c6a4], eax
mov dword [0x59c6a8], eax
mov dword [0x59c6ac], eax
mov dword [0x59c6b0], eax
mov dword [0x59c6b8], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4