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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48c
mov eax, dword [0x5f321c]
push ebx
push esi
push edi
xor ebx, ebx
cmp eax, ebx
mov edi, edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ecx
jne 0x514aae
cmp edi, ebx
mov dword [0x5f321c], 1
je 0x514a66
cmp byte [edi], 0
je 0x514a66
mov eax, edi
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x513d68
sub eax, esi
cmp eax, 0x3b5
jbe 0x513d7e
mov byte [edi + 0x3b5], dl
push ebx
lea edx, [esp + 0x64]
call fcn.00562fa0
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x10], esi
je 0x514a66
mov ecx, dword [esi + 0xbe8]
call fcn.004f0af0
test eax, eax
je 0x514a66
mov eax, dword [esi + 0x71c]
add eax, 0xfffffffd
cmp eax, 6
ja case.0x513dbe.5
movzx eax, byte [eax + 0x514ac4]
jmp dword [eax*4 + 0x514ab8]
mov ecx, dword [esi + 0xbe8]
mov ecx, dword [ecx]
jmp 0x513de8
cmp dword [esi + 0x758], ebx
jne 0x513de0
cmp dword [esi + 0x720], 1
jne case.0x513dbe.5
mov edx, dword [esi + 0xbe8]
mov ecx, dword [edx]
lea edx, [esp + 0x60]
push ebx
mov dword [esp + 0x1c], ecx
call fcn.00562fa0
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x10], esi
je 0x514a66
cmp dword [esi + 0x87c], ebx
je 0x514a66
mov eax, dword [esi + 0x6cc]
cmp eax, ebx
je 0x513e52
cmp dword [eax + 0x44], ebx
je 0x513e52
push 0x5f1aac
push edi
call fcn.005a299c
add esp, 8
test eax, eax
jne 0x513e52
mov eax, dword [esi + 0x6cc]
mov ecx, dword [eax + 0x44]
mov edx, dword [ecx]
push 0x5f1aac
push edx
call fcn.005a299c
add esp, 8
test eax, eax
je 0x514a66
cmp dword [0x5f8cf8], ebx
jne 0x513e6a
cmp dword [0x5f8cf4], ebx
je 0x513ea6
cmp dword [0x5f3208], ebx
je 0x513ea6
cmp dword [esi + 0x764], ebx
mov edx, 1
je 0x513e7c
mov edx, 5
mov eax, dword [esp + 0x14]
lea edi, [esp + 0xb0]
sub edi, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edi + eax], cl
inc eax
test cl, cl
jne 0x513e90
lea ecx, [esp + 0xb0]
call fcn.00555840
cmp dword [0x5bfbb8], ebx
mov dword [esp + 0x58], ebx
je 0x514021
mov eax, dword [0x5f31f8]
cmp eax, ebx
je 0x514021
mov ecx, dword [0x5f31f4]
mov edx, dword [0x5f31fc]
mov edi, dword [0x5bfd5c]
mov ebx, dword [0x5f31f0]
mov dword [esp + 0x54], ecx
mov ecx, dword [0x5bfd60]
mov dword [esp + 0x4c], eax
mov eax, dword [0x5f3200]
mov dword [esp + 0x50], ecx
mov ecx, dword [0x5f320c]
mov dword [esp + 0x40], edx
mov edx, dword [0x5f3204]
mov dword [esp + 0x3c], eax
mov eax, dword [0x5f3208]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x38], edx
mov edx, dword [0x5f3210]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0xb0]
mov dword [esp + 0x1c], edx
sub ecx, eax
mov edi, edi
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
test dl, dl
jne 0x513f30
mov ecx, dword [esp + 0x18]
push 0
lea edx, [esp + 0xb4]
call fcn.00498770
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x40]
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x54]
mov dword [0x5f31f4], eax
mov eax, dword [esp + 0x3c]
mov dword [0x5f31f8], ecx
mov ecx, dword [esp + 0x50]
mov dword [0x5f31fc], edx
mov edx, dword [esp + 0x38]
mov dword [0x5f3200], eax
mov eax, dword [esp + 0x30]
mov dword [0x5bfd60], ecx
mov ecx, dword [esp + 0x28]
mov dword [0x5f3204], edx
mov edx, dword [esp + 0x1c]
mov dword [0x5bfd5c], edi
mov dword [0x5f31f0], ebx
mov dword [0x5f3208], eax
mov dword [0x5f320c], ecx
mov dword [0x5f3210], edx
je 0x51401b
mov eax, dword [esi + 8]
test eax, eax
je 0x513fc7
mov ecx, dword [esp + 0x18]
mov edx, esi
call fcn.0048b800
mov eax, dword [0x5bfd44]
test eax, eax
je 0x513ffe
mov eax, dword [esi + 0x10]
cmp eax, 1
jne 0x513fe1
mov ecx, eax
call fcn.0041f0a0
jmp 0x513ffe
cmp eax, 2
jne 0x513ffe
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0xbe8]
push ecx
lea ecx, [esi + 0x1c]
mov edx, 1
call fcn.005323b0
mov esi, dword [esi + 4]
test esi, esi
jle 0x514009
dec esi
mov dword [ebp + 8], esi
mov dword [0x5f31f4], 0
mov dword [esp + 0x58], 1
mov esi, dword [esp + 0x10]
xor ebx, ebx
mov ecx, dword [0x5f31f0]
cmp ecx, ebx
mov byte [esp + 0x90], 0
jle 0x51406a
cmp ecx, 0x19
jle 0x514043
mov ecx, 0x19
mov dword [0x5f31f0], ecx
mov edx, ecx
shr ecx, 2
mov eax, 0x20202020
lea edi, [esp + 0x90]
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [0x5f31f0]
mov byte [esp + eax + 0x90], 0
mov ecx, dword [esi + 0x87c]
push ecx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x30], edi
je 0x514a66
mov edx, dword [esi + 0x98c]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x4c], eax
cmp dword [esi + 0xdd4], ebx
je 0x5140be
mov dword [esp + 0x34], ebx
xor eax, eax
jmp 0x5140df
cmp dword [0x5c00ec], ebx
jne 0x5140d2
cmp dword [esi + 0xa0c], ebx
mov dword [esp + 0x34], ebx
je 0x5140da
mov dword [esp + 0x34], 1
mov eax, dword [0x5f6594]
cmp eax, ebx
mov dword [esp + 0x48], eax
mov dword [esp + 0x40], 0xffffffff
je 0x514100
mov edx, dword [esi + 0x9fc]
mov ecx, edi
call fcn.0048fb50
mov dword [esp + 0x40], eax
mov ecx, edi
call fcn.00510450
mov ecx, dword [esi + 0x714]
mov dword [esp + 0x78], eax
mov eax, dword [esi + 0x710]
sub eax, ecx
jne 0x514123
mov dword [esp + 0x38], 1
mov eax, dword [0x5f31e8]
inc eax
cmp eax, 0x2328
mov dword [0x5f31e8], eax
jle 0x51413f
mov dword [0x5f31e8], 1
mov esi, dword [esp + 0x14]
mov eax, esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x20], ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x514154
sub eax, edx
add eax, esi
cmp esi, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x80], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x84], ebx
jae 0x5147bb
jmp 0x514190
xor eax, eax
mov ecx, 0xf9
lea edi, [esp + 0xb0]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x514284
mov eax, dword [0x5f31fc]
test eax, eax
je 0x51426b
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x744]
cmp eax, 1
je 0x5141e1
cmp eax, 2
jne 0x51426b
mov eax, dword [0x5f2014]
test eax, eax
je 0x51426b
mov edx, 1
lea ecx, [esp + 0xb0]
call fcn.00541a80
mov al, byte [esp + 0xb0]
test al, al
je 0x514232
lea edi, [esp + 0xb0]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x514205
mov dx, word [0x5a5348]
lea eax, [esp + 0xb0]
mov word [edi], dx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x514221
sub eax, edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x514238
lea edi, [esp + 0xb0]
sub eax, esi
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x514250
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 0x5142f2
mov eax, dword [esp + 0x14]
lea edx, [esp + 0xb0]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x514278
jmp 0x5142f2
mov eax, dword [0x5f31f0]
test eax, eax
je 0x5142db
xor eax, eax
nop
mov cl, byte [esp + eax + 0x90]
mov byte [esp + eax + 0xb0], cl
inc eax
test cl, cl
jne 0x514290
mov eax, dword [esp + 0x14]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5142b0
lea edi, [esp + 0xb0]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x5142c1
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 0x5142f2
mov eax, dword [esp + 0x14]
lea edx, [esp + 0xb0]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x5142e8
lea eax, [esp + 0xb0]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x514300
mov esi, dword [0x5bfd5c]
sub eax, edx
mov edi, eax
xor eax, eax
cmp esi, eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x8c], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x5c], eax
jg 0x514405
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x98c]
push ecx
mov ecx, dword [eax + 0x9fc]
lea edx, [eax + 0x990]
push edx
mov edx, dword [eax + 0x9f4]
push ecx
mov ecx, dword [eax + 0x9f8]
push edx
push ecx
mov ecx, dword [eax + 0x71c]
lea edx, [eax + 0xa04]
push edx
push ecx
push 1
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x74]
push edx
push eax
lea eax, [esp + 0xb4]
push eax
mov eax, dword [esp + 0x9c]
lea ecx, [esp + 0xb0]
push ecx
lea edx, [esp + 0xa8]
push edx
mov edx, dword [esp + 0x6c]
push eax
lea ecx, [esp + 0xb8]
push ecx
push edx
lea eax, [esp + 0xd0]
push eax
lea ecx, [esp + 0xcc]
push ecx
lea edx, [esp + 0x94]
push edx
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0xe4]
push ecx
lea edx, [esp + 0xd0]
push edx
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0xac]
push ecx
lea edx, [esp + 0x118]
push edx
lea edx, [esp + 0xa0]
lea ecx, [esp + 0x90]
call fcn.005106e0
mov esi, dword [esp + 0x1c]
cmp esi, edi
jg 0x51440b
jl 0x514414
mov eax, dword [esp + 0x28]
jmp 0x514602
cmp esi, 1
jge 0x51441e
mov esi, 1
mov ecx, dword [esp + 0x44]
dec esi
mov eax, esi
cdq
and edx, 3
add eax, edx
sar eax, 2
mov ebx, esi
sub ebx, eax
cmp esi, ebx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x1c], ecx
jl 0x5144d8
cmp byte [esp + esi + 0xb0], 0x20
je 0x5144d8
mov eax, dword [esp + 0x34]
xor edi, edi
test eax, eax
je 0x514493
mov edx, esi
lea ecx, [esp + 0xb0]
call fcn.0055a010
test eax, eax
je 0x514473
mov edi, 1
jg 0x5144cf
cmp eax, 0xffffffff
je 0x5144cf
cmp eax, 0xfffffffe
je 0x5144cf
test edi, edi
je 0x514493
mov edx, esi
lea ecx, [esp + 0xb0]
call fcn.0055a010
test eax, eax
jne 0x5144b6
mov eax, dword [esp + 0x48]
test eax, eax
je 0x5144b6
lea edx, [esp + 0xb0]
push esi
push edx
call fcn.005946b3
add esp, 8
cmp eax, 1
je 0x5144cf
cmp eax, 2
je 0x5144cf
cmp byte [esp + esi + 0xb0], 2
jne 0x5144cf
mov ecx, dword [esp + 0x1c]
xor eax, eax
test ecx, ecx
sete al
mov dword [esp + 0x1c], eax
dec esi
cmp esi, ebx
jge 0x514442
test esi, esi
jge 0x5144de
xor esi, esi
cmp esi, ebx
jg 0x5144e8
mov esi, dword [esp + 0x5c]
jmp 0x5144fe
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x44], eax
je 0x5144fe
mov dword [esp + 0x44], eax
mov dword [esp + 0x50], 1
mov eax, dword [esp + 0x34]
xor ebx, ebx
test eax, eax
je 0x51456a
cmp esi, dword [esp + 0x24]
jge 0x51456a
lea edi, [esi + 1]
mov edx, esi
lea ecx, [esp + 0xb0]
call fcn.0055a010
test eax, eax
je 0x51452a
mov ebx, 1
jg 0x51454a
cmp eax, 0xffffffff
je 0x51454a
cmp eax, 0xfffffffe
jne 0x514554
cmp edi, dword [esp + 0x24]
jge 0x514554
lea ecx, [esp + esi + 0xb1]
call fcn.0055ac90
test eax, eax
je 0x514554
mov eax, dword [esp + 0x24]
inc esi
inc edi
cmp esi, eax
jl 0x514511
test ebx, ebx
je 0x51456a
mov edx, esi
lea ecx, [esp + 0xb0]
call fcn.0055a010
test eax, eax
jne 0x514595
mov eax, dword [esp + 0x48]
test eax, eax
je 0x514595
mov eax, dword [esp + 0x24]
lea edi, [esi + 1]
cmp edi, eax
jge 0x514595
lea ecx, [esp + 0xb0]
push esi
push ecx
call fcn.005946b3
add esp, 8
cmp eax, 2
jne 0x514595
mov esi, edi
mov ecx, dword [esp + 0x2c]
mov eax, dword [0x5f31f0]
inc esi
test ecx, ecx
jne 0x5145d7
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x5145c7
mov eax, dword [esp + 0x3c]
cmp esi, eax
jge 0x5145b5
mov esi, eax
mov byte [esp + esi + 0xb0], 0
sub esi, eax
mov eax, dword [esp + 0x14]
add eax, esi
jmp 0x514606
mov eax, dword [esp + 0x14]
mov byte [esp + esi + 0xb0], 0
add eax, esi
jmp 0x514606
test eax, eax
jle 0x5145f2
cmp esi, eax
jg 0x5145f2
dec eax
mov dword [0x5f31f0], eax
mov byte [esp + eax + 0x90], 0
jmp 0x5147ad
mov byte [esp + esi + 0xb0], 0
sub esi, eax
mov eax, dword [esp + 0x14]
add eax, esi
mov ebx, dword [esp + 0x20]
mov edx, dword [ebp + 8]
mov edi, dword [esp + 0x10]
push ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x6c]
push edx
push eax
lea edx, [esp + 0xbc]
mov ecx, edi
call fcn.00510570
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x5146d9
mov eax, dword [edi + 0x6a8]
test eax, eax
je 0x5146d9
mov eax, dword [0x5f3204]
test eax, eax
jne 0x5146d9
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x28]
jae 0x51468d
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x514660
lea edi, [esp + 0xb0]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x514671
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 edi, dword [esp + 0x10]
mov al, byte [esp + 0xb0]
test al, al
je 0x5146d9
test ebx, ebx
jle 0x5146c6
lea edx, [esp + ebx + 0xb0]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5146a8
sub eax, esi
inc eax
push eax
push edx
lea ecx, [esp + 0xb8]
push ecx
call fcn.00592290
add esp, 0xc
xor ebx, ebx
mov edx, dword [ebp + 8]
push edx
push ebx
lea edx, [esp + 0xb8]
mov ecx, edi
call fcn.004d6bc0
xor edx, edx
mov ecx, edi
mov dword [esp + 0x20], 0
call fcn.00422900
mov eax, dword [0x5f3208]
mov esi, 1
cmp eax, esi
jne 0x514738
cmp dword [edi + 0x71c], 2
jne 0x514738
mov eax, dword [edi + 0x780]
test eax, eax
jne 0x514738
mov dword [edi + 0x780], 0x3e8
mov eax, dword [0x5eeef0]
test eax, eax
jne 0x514738
mov eax, dword [0x5f92ec]
push 0
push 0x64
push 0x8b
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x5eeef0], eax
mov eax, dword [esp + 0x38]
test eax, eax
je 0x514788
mov eax, dword [0x5f31ec]
test eax, eax
jne 0x514788
mov eax, dword [esp + 0x18]
cmp eax, dword [0x5c9f20]
je 0x514788
cmp eax, dword [0x5c9f30]
je 0x514788
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x78]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x7c]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x40]
mov dword [ecx + 0xc], eax
mov ecx, edi
call fcn.00511f80
mov eax, dword [0x5bfd5c]
test eax, eax
jge 0x5147a9
mov eax, dword [0x5f31e8]
inc eax
cmp eax, 0x2328
mov dword [0x5f31e8], eax
jle 0x5147a9
mov dword [0x5f31e8], esi
inc dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x28]
jb 0x514190
mov eax, dword [esp + 0x40]
test eax, eax
jl 0x5147cc
push eax
call fcn.00594506
add esp, 4
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x30]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x54]
test eax, eax
je 0x5147eb
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x38]
mov ecx, dword [0x5c9f20]
test eax, eax
mov eax, dword [esp + 0x18]
je 0x514884
cmp eax, ecx
je 0x51488e
cmp eax, dword [0x5c9f30]
je 0x51488e
mov eax, dword [0x5f31ec]
test eax, eax
mov esi, dword [esp + 0x10]
je 0x514876
mov eax, dword [esi + 0x87c]
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [0x5f31ec]
inc eax
cmp eax, 3
mov dword [0x5f31ec], eax
jl 0x514876
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x78]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x7c]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
xor edx, edx
mov ecx, esi
mov dword [0x5f31ec], 1
call fcn.00511f80
mov edx, 1
mov ecx, esi
call fcn.00563270
jmp 0x5148ae
cmp eax, ecx
je 0x51488e
mov ecx, dword [0x5c9f30]
mov esi, dword [esp + 0x10]
mov ecx, esi
xor edx, edx
call fcn.00563270
mov eax, dword [0x5bfd44]
test eax, eax
je 0x5148ae
mov dword [0x5f31f4], 2
mov ecx, dword [esi + 0x87c]
push edi
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x5bfd60]
test eax, eax
mov ebx, dword [sym.imp.USER32.dll_IsWindowVisible]
je 0x5149c5
cmp dword [esi + 0x71c], 3
je 0x5149c5
mov eax, dword [esi + 0x724]
cmp eax, 2
je 0x5149c5
cmp eax, 1
mov edi, dword [esp + 0x58]
jne 0x5148fc
test edi, edi
je 0x5149c5
cmp eax, 3
jne 0x514912
test edi, edi
jne 0x514912
mov eax, dword [0x5f3208]
test eax, eax
je 0x5149c5
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x514983
mov eax, dword [esp + 0x18]
push eax
call ebx
test eax, eax
je 0x514983
mov eax, dword [0x5bfdbc]
test eax, eax
jne 0x514942
mov eax, dword [0x5f8b8c]
test eax, eax
je 0x5149c5
mov eax, dword [0x5bfddc]
test eax, eax
je 0x5149c5
mov ecx, dword [esp + 0x18]
cmp ecx, dword [0x5f92f8]
je 0x5149c5
test edi, edi
je 0x51496b
mov dword [esi + 0x724], 2
jmp 0x5149be
mov eax, dword [0x5f3208]
xor edx, edx
test eax, eax
sete dl
lea edx, [edx + edx + 1]
mov dword [esi + 0x724], edx
jmp 0x5149be
test edi, edi
je 0x514993
mov dword [esi + 0x724], 2
jmp 0x5149aa
mov ecx, dword [0x5f3208]
xor eax, eax
test ecx, ecx
sete al
lea eax, [eax + eax + 1]
mov dword [esi + 0x724], eax
mov ecx, dword [esp + 0x18]
push ecx
call ebx
test eax, eax
je 0x5149be
xor edx, edx
mov ecx, esi
call fcn.00499aa0
xor ecx, ecx
call fcn.0053b590
mov eax, dword [0x5f31f4]
test eax, eax
je 0x514a38
mov ecx, dword [esi + 0x730]
test ecx, ecx
jne 0x514a38
mov ecx, dword [0x5c5e18]
test ecx, ecx
jne 0x514a38
cmp eax, 2
jne 0x514a06
mov eax, dword [0x5f199c]
test eax, eax
je 0x514a06
mov edi, dword [esp + 0x18]
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x514a06
push edi
call ebx
test eax, eax
jne 0x514a2e
mov edx, dword [0x5f92f8]
cmp dword [esp + 0x18], edx
jne 0x514a1b
mov eax, dword [0x5f92f4]
test eax, eax
jne 0x514a38
mov eax, dword [0x5bfd44]
test eax, eax
je 0x514a38
mov eax, dword [esi + 0x728]
test eax, eax
je 0x514a38
mov ecx, 1
call fcn.0041f0a0
mov eax, dword [0x5f3200]
test eax, eax
je 0x514a66
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x72c]
test ecx, ecx
je 0x514a66
mov ecx, eax
mov eax, dword [ecx + 0x730]
test eax, eax
jne 0x514a66
mov ecx, dword [esp + 0x18]
xor edx, edx
call fcn.0048b800
xor eax, eax
mov dword [0x5bfd5c], 0x55
mov dword [0x5f31f0], eax
mov dword [0x5f31f4], eax
mov dword [0x5f31f8], eax
mov dword [0x5f31fc], eax
mov dword [0x5f3200], eax
mov dword [0x5bfd60], 1
mov dword [0x5f3204], eax
mov dword [0x5f3208], eax
mov dword [0x5f320c], eax
mov dword [0x5f3210], eax
mov dword [0x5f321c], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4