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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x31ec
call fcn.005d9990
mov eax, dword [0x687100]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
jne 0x52eb08
mov esi, dword [ebp + 0xc]
cmp esi, ebx
mov dword [0x687100], 1
je 0x52eac5
cmp byte [esi], 0
je 0x52eac5
push 0x1036
push 4
push esi
call fcn.00425670
mov ecx, dword [ebp + 8]
push ebx
lea eax, [esp + 0x68]
push eax
push ecx
call fcn.00591060
mov edi, eax
add esp, 0x18
cmp edi, ebx
mov dword [esp + 0xc], edi
je 0x52eac5
mov edx, dword [edi + 0x1e90]
push edx
call fcn.00508aa0
add esp, 4
test eax, eax
je 0x52eac5
mov eax, dword [edi + 0x1314]
add eax, 0xfffffffd
cmp eax, 6
ja case.0x52de59.5
movzx eax, byte [eax + 0x52eb1c]
jmp dword [eax*4 + 0x52eb10]
mov ecx, dword [edi + 0x1e90]
mov eax, dword [ecx]
push ebx
lea edx, [esp + 0x5c]
push edx
jmp 0x52de8f
cmp dword [edi + 0x134c], ebx
jne 0x52de81
cmp dword [edi + 0x1318], 1
jne case.0x52de59.5
mov eax, dword [edi + 0x1e90]
mov eax, dword [eax]
push ebx
lea ecx, [esp + 0x5c]
push ecx
push eax
mov dword [ebp + 8], eax
call fcn.00591060
mov edi, eax
add esp, 0xc
cmp edi, ebx
mov dword [esp + 0xc], edi
je 0x52eac5
cmp dword [edi + 0x1478], ebx
je 0x52eac5
mov eax, dword [edi + 0x12c4]
cmp eax, ebx
je 0x52def7
cmp dword [eax + 0x44], ebx
je 0x52def7
push 0x6813e8
push esi
call fcn.005f1860
add esp, 8
test eax, eax
jne 0x52def7
mov edx, dword [edi + 0x12c4]
mov eax, dword [edx + 0x44]
mov ecx, dword [eax]
push 0x6813e8
push ecx
call fcn.005f1860
add esp, 8
test eax, eax
je 0x52eac5
cmp dword [0x69ea38], ebx
jne 0x52df0f
cmp dword [0x69ea34], ebx
je 0x52df4d
cmp dword [0x6870e8], ebx
je 0x52df4d
mov eax, dword [edi + 0x1358]
test eax, eax
mov ebx, 1
je 0x52df23
mov ebx, 5
lea edx, [esp + 0x88]
mov eax, esi
sub edx, esi
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x52df30
lea edx, [esp + 0x88]
push ebx
push edx
call fcn.00581e40
add esp, 8
xor ebx, ebx
cmp dword [0x669814], ebx
mov dword [esp + 0x54], ebx
je 0x52e149
mov eax, dword [0x6870d8]
cmp eax, ebx
je 0x52e149
mov ecx, dword [0x6870d4]
mov edx, dword [0x6870dc]
mov edi, dword [0x6870cc]
mov ebx, dword [0x6870d0]
mov dword [esp + 0x48], ecx
mov ecx, dword [0x61a700]
mov dword [esp + 0x40], eax
mov eax, dword [0x6870e0]
mov dword [esp + 0x44], ecx
mov ecx, dword [0x6870ec]
mov dword [esp + 0x3c], edx
mov edx, dword [0x6870e4]
mov dword [esp + 0x38], eax
mov eax, dword [0x6870e8]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x34], edx
mov edx, dword [0x6870f0]
lea ecx, [esp + 0x88]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], edx
mov eax, esi
sub ecx, esi
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
test dl, dl
jne 0x52dfd3
mov ecx, dword [ebp + 8]
push 0
lea eax, [esp + 0x8c]
push eax
push ecx
call fcn.004a62a0
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x48]
mov esi, eax
mov eax, dword [esp + 0x4c]
mov dword [0x6870d4], edx
mov edx, dword [esp + 0x44]
mov dword [0x6870d8], eax
mov eax, dword [esp + 0x50]
mov dword [0x6870dc], ecx
mov ecx, dword [esp + 0x40]
mov dword [0x6870e0], edx
mov edx, dword [esp + 0x38]
mov dword [0x61a700], eax
mov eax, dword [esp + 0x30]
mov dword [0x6870e4], ecx
mov ecx, dword [esp + 0x1c]
add esp, 0xc
test esi, esi
mov dword [0x6870cc], edi
mov dword [0x6870d0], ebx
mov dword [0x6870e8], edx
mov dword [0x6870ec], eax
mov dword [0x6870f0], ecx
je 0x52e140
mov eax, dword [esi + 8]
test eax, eax
je 0x52e074
mov edx, dword [ebp + 8]
push esi
push edx
call fcn.004981e0
add esp, 8
mov eax, dword [esi + 0x14]
cmp eax, 1
jne 0x52e088
push 0
call fcn.00421dc0
add esp, 4
jmp 0x52e0a6
cmp eax, 2
jne 0x52e0a6
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x1e90]
push ecx
lea edx, [esi + 0x28]
push 1
push edx
call fcn.00555340
add esp, 0xc
mov eax, dword [esi + 4]
test eax, eax
jle 0x52e0b1
dec eax
mov dword [ebp + 0x10], eax
mov eax, dword [esi + 0x20]
test eax, eax
je 0x52e12e
call fcn.004a6260
mov ebx, eax
test ebx, ebx
je 0x52e12e
xor eax, eax
mov ecx, 0x842
lea edi, [esp + 0x10f0]
rep stosd dword es:[edi], eax
lea eax, [esi + 0x45a]
push eax
lea ecx, [esp + 0x1120]
push 0x1068
push ecx
call fcn.00425550
mov edx, dword [ebx + 4]
push edx
lea eax, [esp + 0x2194]
push 0x1068
push eax
call fcn.00425550
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0x24]
mov edx, dword [eax]
push edx
mov edx, dword [eax + 0x1e90]
mov dword [esp + 0x3208], ecx
lea ecx, [esp + 0x110c]
push ecx
push edx
push 0x32
push 0
call fcn.00577910
add esp, 0x2c
mov dword [0x6870d4], 0
mov dword [esp + 0x54], 1
mov esi, dword [ebp + 0xc]
mov edi, dword [esp + 0xc]
xor ebx, ebx
mov eax, dword [edi + 0x1478]
push eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.USER32.dll_GetDC]
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x52eac5
mov ecx, dword [edi + 0x1754]
push ecx
mov edx, eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x40], eax
cmp dword [edi + 0x214c], ebx
je 0x52e19c
mov dword [esp + 0x30], ebx
mov dword [esp + 0x1c], ebx
jmp 0x52e1cf
cmp dword [0x61b5c4], ebx
jne 0x52e1ac
cmp dword [edi + 0x18a4], ebx
je 0x52e1c2
push esi
call fcn.005868a0
add esp, 4
cmp eax, 2
mov dword [esp + 0x30], 1
je 0x52e1c6
mov dword [esp + 0x30], ebx
mov eax, dword [0x693624]
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x1c], ebx
mov dword [esp + 0x3c], 0xffffffff
je 0x52e1f5
mov ecx, dword [edi + 0x1894]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.0049cd10
add esp, 8
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x14]
push eax
call fcn.00529df0
mov ecx, dword [edi + 0x1308]
mov dword [esp + 0x74], eax
mov eax, dword [edi + 0x130c]
add esp, 4
sub ecx, eax
jne 0x52e21e
mov dword [esp + 0x2c], 1
mov eax, dword [0x6870c4]
inc eax
cmp eax, 0x2328
mov dword [0x6870c4], eax
jle 0x52e23a
mov dword [0x6870c4], 1
mov eax, esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x18], ebx
lea edx, [eax + 1]
jmp 0x52e250
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x52e250
mov ecx, dword [0x6870d0]
sub eax, edx
lea edi, [eax + esi]
mov eax, 0x400
cmp ecx, eax
mov dword [esp + 0x24], edi
jl 0x52e274
mov dword [0x6870d0], eax
cmp dword [0x6870c8], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x34], ebx
je 0x52e2ad
call fcn.005d9ec8
cdq
mov ecx, 0x64
idiv ecx
cmp edx, 0x46
jg 0x52e2ad
mov dword [esp + 0x34], 1
cmp esi, edi
jae 0x52e8c8
jmp 0x52e2c0
lea edx, [esp + 0x88]
push 0x1068
push edx
call fcn.004232e0
mov eax, dword [esp + 0x30]
add esp, 8
test eax, eax
jne 0x52e367
mov eax, dword [0x6870dc]
test eax, eax
je 0x52e395
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x133c]
cmp eax, 1
je 0x52e313
cmp eax, 2
jne 0x52e395
mov eax, dword [0x682a4c]
test eax, eax
je 0x52e395
lea ecx, [esp + 0x88]
push 1
push ecx
call fcn.00565af0
mov al, byte [esp + 0x90]
add esp, 8
test al, al
je 0x52e395
lea edi, [esp + 0x88]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x52e338
mov dx, word [0x5f4858]
lea eax, [esp + 0x88]
mov word [edi], dx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x52e354
sub eax, edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x18], eax
jmp 0x52e395
mov edx, dword [0x6870d0]
test edx, edx
jle 0x52e395
mov ecx, edx
mov esi, ecx
shr ecx, 2
mov eax, 0x20202020
lea edi, [esp + 0x88]
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov byte [esp + edx + 0x88], 0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [esp + 0x8c]
push 0x1068
push ecx
call fcn.004255c0
lea eax, [esp + 0x94]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x52e3b8
mov esi, dword [0x6870cc]
mov ebx, dword [esp + 0xc]
sub eax, edx
mov edi, eax
xor eax, eax
cmp esi, eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x84], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x50], eax
jg 0x52e4c6
push eax
mov edx, dword [ebx + 0x1754]
push edx
mov ecx, dword [ebx + 0x1894]
mov edx, dword [ebx + 0x188c]
lea eax, [ebx + 0x1758]
push eax
push ecx
mov eax, dword [ebx + 0x1890]
push edx
mov edx, dword [ebx + 0x1314]
push eax
lea ecx, [ebx + 0x189c]
push ecx
push edx
push 1
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x6c]
push edx
push ebx
lea eax, [esp + 0xb0]
push eax
mov eax, dword [esp + 0x98]
lea ecx, [esp + 0xac]
push ecx
lea edx, [esp + 0xa4]
push edx
mov edx, dword [esp + 0x54]
push eax
lea ecx, [esp + 0xb4]
push ecx
push edx
lea eax, [esp + 0xcc]
push eax
lea ecx, [esp + 0xc8]
push ecx
lea edx, [esp + 0xa0]
push edx
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0xe0]
push ecx
lea edx, [esp + 0xcc]
push edx
lea eax, [esp + 0xb4]
push eax
mov eax, dword [esp + 0x98]
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0xf4]
push edx
push eax
lea ecx, [esp + 0x94]
push ecx
call fcn.0052a2f0
mov esi, dword [esp + 0x88]
add esp, 0x78
cmp esi, edi
jg 0x52e4cc
jl 0x52e4d8
mov edx, dword [esp + 0x24]
mov dword [ebp + 0xc], edx
jmp 0x52e713
cmp esi, 1
jge 0x52e4e2
mov esi, 1
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 eax, dword [esp + 0x4c]
mov dword [esp + 0x50], esi
mov dword [esp + 0x10], eax
jl 0x52e5b5
jmp 0x52e510
mov al, byte [esp + esi + 0x88]
cmp al, 0x20
je 0x52e5b5
cmp al, 9
je 0x52e5b5
mov eax, dword [esp + 0x30]
xor edi, edi
test eax, eax
je 0x52e570
lea ecx, [esp + 0x88]
push esi
push ecx
call fcn.005867a0
add esp, 8
test eax, eax
je 0x52e54d
mov edi, 1
jg 0x52e5ac
cmp eax, 0xffffffff
je 0x52e5ac
cmp eax, 0xfffffffe
je 0x52e5ac
test edi, edi
je 0x52e570
lea edx, [esp + 0x88]
push esi
push edx
call fcn.005867a0
add esp, 8
test eax, eax
jne 0x52e593
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x52e593
lea eax, [esp + 0x88]
push esi
push eax
call fcn.005dd489
add esp, 8
cmp eax, 1
je 0x52e5ac
cmp eax, 2
je 0x52e5ac
cmp byte [esp + esi + 0x88], 2
jne 0x52e5ac
mov eax, dword [esp + 0x10]
xor ecx, ecx
test eax, eax
sete cl
mov dword [esp + 0x10], ecx
dec esi
cmp esi, ebx
jge 0x52e510
test esi, esi
jge 0x52e5bb
xor esi, esi
cmp esi, ebx
jg 0x52e5c5
mov esi, dword [esp + 0x50]
jmp 0x52e5db
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x4c], eax
je 0x52e5db
mov dword [esp + 0x4c], eax
mov dword [esp + 0x44], 1
test esi, esi
mov edi, esi
jl 0x52e61e
lea eax, [esi - 5]
cmp edi, eax
jl 0x52e61e
cmp byte [esp + edi + 0x88], 3
je 0x52e5f7
dec edi
jns 0x52e5e4
jmp 0x52e61e
push 0
push 0
push 0
lea edx, [esp + edi + 0x94]
push 0
push edx
call fcn.00529b50
add eax, edi
add esp, 0x14
cmp eax, esi
jl 0x52e61e
lea esi, [edi - 1]
test esi, esi
jge 0x52e61e
xor esi, esi
mov eax, dword [esp + 0x30]
xor ebx, ebx
test eax, eax
je 0x52e694
cmp esi, dword [esp + 0x20]
jge 0x52e694
lea edi, [esi + 1]
lea eax, [esp + 0x88]
push esi
push eax
call fcn.005867a0
add esp, 8
test eax, eax
je 0x52e64d
mov ebx, 1
jg 0x52e671
cmp eax, 0xffffffff
je 0x52e671
cmp eax, 0xfffffffe
jne 0x52e67b
cmp edi, dword [esp + 0x20]
jge 0x52e67b
lea ecx, [esp + esi + 0x89]
push ecx
call fcn.00587620
add esp, 4
test eax, eax
je 0x52e67b
mov eax, dword [esp + 0x20]
inc esi
inc edi
cmp esi, eax
jl 0x52e631
test ebx, ebx
je 0x52e694
lea edx, [esp + 0x88]
push esi
push edx
call fcn.005867a0
add esp, 8
test eax, eax
jne 0x52e6d0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x52e6c1
mov eax, dword [esp + 0x20]
lea edi, [esi + 1]
cmp edi, eax
jge 0x52e6c1
lea eax, [esp + 0x88]
push esi
push eax
call fcn.005dd489
add esp, 8
cmp eax, 2
jne 0x52e6c1
mov esi, edi
jmp 0x52e6d1
mov al, byte [esp + esi + 0x88]
cmp al, 0x20
je 0x52e6d0
cmp al, 9
jne 0x52e6d1
inc esi
cmp esi, 1
jge 0x52e6db
mov esi, 1
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x52e94d
mov eax, dword [esp + 0x18]
test eax, eax
je 0x52e940
mov eax, dword [esp + 0x38]
cmp esi, eax
jge 0x52e6fd
mov esi, eax
mov byte [esp + esi + 0x88], 0
sub esi, eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [esp + 0xc]
add eax, esi
mov dword [ebp + 0xc], eax
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x60]
push ecx
push edx
push eax
lea ecx, [esp + 0x94]
push ecx
push ebx
call fcn.0052a190
mov eax, dword [esp + 0x3c]
add esp, 0x14
test eax, eax
jne 0x52e7e4
mov eax, dword [ebx + 0x12a0]
test eax, eax
je 0x52e7e4
mov eax, dword [0x6870e4]
test eax, eax
jne 0x52e7e4
mov eax, dword [ebp + 0xc]
cmp eax, dword [esp + 0x24]
jae 0x52e78d
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x52e764
lea edi, [esp + 0x88]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x52e775
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 + 0x88]
test al, al
je 0x52e7e4
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x52e7ce
lea edx, [esp + eax + 0x88]
mov eax, edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x52e7b0
sub eax, esi
inc eax
push eax
push edx
lea edx, [esp + 0x90]
push edx
call fcn.005daa60
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp + 0x10]
push ecx
push eax
lea edx, [esp + 0x90]
push edx
push ebx
call fcn.004ebca0
add esp, 0x10
push 0
push ebx
mov dword [esp + 0x20], 0
call fcn.00427330
mov eax, dword [0x6870e8]
mov esi, 1
add esp, 8
cmp eax, esi
jne 0x52e845
cmp dword [ebx + 0x1314], 2
jne 0x52e845
mov eax, dword [ebx + 0x1378]
test eax, eax
jne 0x52e845
mov dword [ebx + 0x1378], 0x3e8
mov eax, dword [0x676ec8]
test eax, eax
jne 0x52e845
mov eax, dword [0x6a0f40]
push 0
push 0x64
push 0x8a
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x676ec8], eax
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x52e896
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x52e896
mov eax, dword [ebp + 8]
cmp eax, dword [0x63ce18]
je 0x52e896
cmp eax, dword [0x63ce28]
je 0x52e896
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x70]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x74]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x24]
push ecx
push ebx
call fcn.0052bfd0
add esp, 0x18
mov eax, dword [0x6870cc]
test eax, eax
jge 0x52e8b7
mov eax, dword [0x6870c4]
inc eax
cmp eax, 0x2328
mov dword [0x6870c4], eax
jle 0x52e8b7
mov dword [0x6870c4], esi
inc dword [esp + 0x28]
mov edx, dword [ebp + 0xc]
cmp edx, dword [esp + 0x24]
jb 0x52e2c0
mov eax, dword [esp + 0x3c]
test eax, eax
jl 0x52e8d9
push eax
call fcn.005dd2dc
add esp, 4
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x48]
test eax, eax
je 0x52e8f8
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x2c]
mov ecx, dword [0x63ce18]
test eax, eax
mov eax, dword [ebp + 8]
je 0x52e96d
cmp eax, ecx
je 0x52e977
cmp eax, dword [0x63ce28]
je 0x52e977
cmp dword [esp + 0x34], 1
mov esi, dword [esp + 0xc]
jne 0x52e931
mov edx, dword [esi + 0x1478]
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
push 1
push esi
call fcn.00591350
mov ebx, 2
jmp 0x52e98e
mov byte [esp + esi + 0x88], 0
jmp 0x52e707
mov eax, dword [0x6870d0]
test eax, eax
jle 0x52e6fd
cmp esi, eax
jg 0x52e6fd
dec eax
mov dword [0x6870d0], eax
jmp 0x52e8bb
cmp eax, ecx
je 0x52e977
mov ecx, dword [0x63ce28]
mov esi, dword [esp + 0xc]
push 0
push esi
call fcn.00591350
mov ebx, 2
mov dword [0x6870d4], ebx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x1478]
add esp, 8
push eax
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x61a700]
test eax, eax
je 0x52ea1f
cmp dword [esi + 0x1314], 3
je 0x52ea1f
mov eax, dword [esi + 0x131c]
cmp eax, ebx
je 0x52ea1f
cmp eax, 1
mov edi, dword [esp + 0x54]
jne 0x52e9cc
test edi, edi
je 0x52ea1f
cmp eax, 3
jne 0x52e9de
test edi, edi
jne 0x52e9de
mov eax, dword [0x6870e8]
test eax, eax
je 0x52ea1f
mov edx, dword [esi]
push edx
call fcn.00597230
add esp, 4
test eax, eax
je 0x52ea1f
test edi, edi
je 0x52e9f9
mov dword [esi + 0x131c], ebx
jmp 0x52ea10
mov ecx, dword [0x6870e8]
xor eax, eax
test ecx, ecx
sete al
lea eax, [eax + eax + 1]
mov dword [esi + 0x131c], eax
push esi
call fcn.00590d80
push esi
call fcn.0055f1c0
add esp, 8
mov eax, dword [0x6870d4]
test eax, eax
je 0x52ea8a
mov ecx, dword [esi]
push ecx
call fcn.004348b0
add esp, 4
test eax, eax
jne 0x52ea8a
cmp dword [0x6870d4], ebx
jne 0x52ea63
mov eax, dword [0x680fa0]
test eax, eax
je 0x52ea63
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x52ea66
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x52ea66
jmp 0x52ea80
mov edi, dword [ebp + 8]
push esi
call fcn.0058fc10
add esp, 4
test eax, eax
je 0x52ea8a
push edi
call fcn.005971c0
add esp, 4
test eax, eax
je 0x52ea8a
push 0
call fcn.00421dc0
add esp, 4
mov eax, dword [0x6870e0]
test eax, eax
je 0x52eac5
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
push eax
call fcn.004348b0
add esp, 4
test eax, eax
jne 0x52eac5
mov ecx, dword [esp + 0xc]
push ecx
call fcn.0058feb0
add esp, 4
test eax, eax
je 0x52eac5
mov edx, dword [ebp + 8]
push 0
push edx
call fcn.004981e0
add esp, 8
xor eax, eax
mov dword [0x6870cc], eax
mov dword [0x6870d0], eax
mov dword [0x6870d4], eax
mov dword [0x6870d8], eax
mov dword [0x6870dc], eax
mov dword [0x6870e0], eax
mov dword [0x61a700], 1
mov dword [0x6870e4], eax
mov dword [0x6870e8], eax
mov dword [0x6870ec], eax
mov dword [0x6870f0], eax
mov dword [0x687100], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret