Function at 0x520a00
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x5f3008]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [0x6167b8]
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x18c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x184], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x180], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x178], eax
xor al, al
mov byte [ebp - 0x115], al
xor eax, eax
push ebx
xor ebx, ebx
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x170], eax
mov eax, dword [ecx + 0x3c]
push esi
xor esi, esi
mov dword [ebp - 0x100], ebx
push edi
mov edi, dword [ebp + 0xc]
mov word [eax + 0xea76], si
mov eax, dword [ebp - 0x178]
mov dword [ebp - 0x188], edi
mov dword [edi], ebx
mov dword [edi + 4], ebx
xor edi, edi
mov byte [eax], bl
mov dword [edx], ebx
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x164], ebx
mov dword [ecx + 0x2182c], ebx
mov dword [ecx + 0x21830], ebx
mov dword [ecx + 0x21834], ebx
mov dword [ecx + 0x21838], ebx
mov dword [ecx + 0x344], ebx
mov dword [ecx + 0x348], ebx
lea ebx, [esi + 2]
mov dword [ebp - 0x190], edx
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 0x174], esi
nop dword [eax]
mov eax, dword [ecx + 0x3c]
cmp byte [eax + edi + 0x1d560], 0
je 0x520b26
add eax, 0x1d5a8
push 1
add eax, esi
push eax
call fcn.0051fb80
xor ecx, ecx
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00560858
add esp, 4
mov dword [ebp + edi*4 - 0x1b8], eax
push eax
mov eax, dword [ebp - 0x10c]
push 1
mov eax, dword [eax + 0x3c]
add eax, 0x1d5a8
add eax, esi
push eax
call fcn.0051fce0
mov ecx, dword [ebp - 0x10c]
add esi, 0x802
inc edi
cmp esi, 0x5014
jl 0x520ad0
mov edi, dword [ebp - 0x10c]
mov ebx, 0
mov ecx, dword [edi]
mov dword [ebp - 0x114], ecx
test ecx, ecx
je 0x520bc4
xor esi, esi
nop
mov ebx, dword [ecx + 0x1c]
test ebx, ebx
je 0x520b9c
mov edi, dword [ebx + 0x34]
test edi, edi
je 0x520b87
nop
mov esi, dword [edi + 0x24]
test esi, esi
je 0x520b7a
mov eax, esi
mov esi, dword [esi]
push 0xc
push eax
call fcn.00560815
add esp, 8
test esi, esi
jne 0x520b67
mov dword [edi + 0x24], 0
mov edi, dword [edi]
test edi, edi
jne 0x520b60
mov ebx, dword [ebx]
test ebx, ebx
jne 0x520b57
mov ecx, dword [ebp - 0x114]
mov esi, dword [ebp - 0x15c]
mov ebx, dword [ecx + 0x1c]
mov dword [ecx + 0x24], ebx
inc esi
mov ecx, dword [ecx]
mov dword [ebp - 0x15c], esi
mov dword [ebp - 0x114], ecx
test ecx, ecx
jne 0x520b50
mov edi, dword [ebp - 0x10c]
xor ebx, ebx
mov ecx, dword [edi]
mov dword [ebp - 0x114], ecx
jmp 0x520bc6
xor esi, esi
mov dword [ebp - 0x124], 0
test ecx, ecx
je 0x520bdd
mov eax, dword [ecx + 0x1c]
mov dword [ebp - 0x124], eax
mov dl, byte [ebp + 0x20]
mov eax, 0
test dl, dl
mov dword [ebp - 0x128], 1
cmove eax, dword [ebp - 0x128]
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x168], eax
cmp esi, 0x1f4
jle 0x520c3f
mov eax, dword [edi + 0x40]
push 0x5e827c
push 0
push 0x801d
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi + 0x40]
push 5
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0x114]
mov eax, dword [ebp - 0x130]
mov dl, byte [ebp + 0x20]
test ecx, ecx
je 0x521702
test dl, dl
je 0x520c5f
cmp ecx, dword [edi + 8]
jne 0x520c5f
or eax, 5
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x168], eax
mov eax, dword [ebp - 0x124]
mov esi, ecx
mov dword [ebp - 0x110], eax
xor ecx, ecx
mov al, 1
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x12c], ecx
mov byte [ebp - 0x101], al
test al, al
je 0x520ce3
mov ecx, dword [edi + 0x48]
movzx eax, byte [ecx + 0x6c55]
push eax
movzx eax, byte [ecx + 0x6c54]
mov ecx, esi
push eax
push 0
push 0
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x134]
push eax
call fcn.00531230
mov ecx, dword [ebp - 0x12c]
add ecx, eax
cmp dword [ebp - 0x110], 0
mov dword [ebp - 0x12c], ecx
jne 0x520cd7
mov esi, dword [esi]
test esi, esi
je 0x520ce3
mov al, byte [ebp - 0x101]
jmp 0x520c87
test ecx, ecx
jle 0x52165b
lea esi, [ecx + 0x64]
mov edx, 2
xor ecx, ecx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00560858
mov dword [ebp - 0x138], eax
xor ecx, ecx
mov eax, dword [ebp - 0x12c]
mov ebx, 4
add eax, 0x65
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00560858
mov dword [ebp - 0x150], eax
xor ecx, ecx
mov eax, esi
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00560858
mov dword [ebp - 0x154], eax
xor ecx, ecx
mov eax, esi
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00560858
mov esi, dword [ebp - 0x114]
add esp, 0x10
mov ebx, eax
mov dword [ebp - 0x160], 0
mov eax, dword [ebp - 0x124]
xor edx, edx
mov cl, 1
mov dword [ebp - 0x144], ebx
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x140], edx
mov byte [ebp - 0x101], cl
test cl, cl
je 0x520e3a
mov ecx, dword [edi + 0x48]
movzx eax, byte [ecx + 0x6c55]
push eax
movzx eax, byte [ecx + 0x6c54]
mov ecx, esi
push eax
push 0
push 0
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x168]
push eax
push ebx
push dword [ebp - 0x154]
lea eax, [ebp - 0x128]
push dword [ebp - 0x150]
push dword [ebp - 0x138]
push eax
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x134]
push eax
call fcn.00531470
mov edx, dword [ebp - 0x140]
add edx, eax
cmp dword [ebp - 0x110], 0
mov dword [ebp - 0x140], edx
jne 0x520e2b
mov esi, dword [esi]
test esi, esi
je 0x520e3a
mov cl, byte [ebp - 0x101]
jmp 0x520da8
mov ebx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x168]
mov dword [ebp - 0x130], eax
cmp ebx, edx
jge 0x52161e
mov esi, dword [ebp - 0x12c]
cmp ebx, esi
jge 0x52161c
mov edx, dword [ebp - 0x138]
cmp word [edx + ebx*2], 0xa
jne 0x520e97
test ebx, ebx
jle 0x520e97
cmp word [edx + ebx*2 - 2], 0xd
jne 0x520e97
lea esi, [ebx - 2]
test esi, esi
js 0x520eb3
movzx eax, word [edx + esi*2]
cmp eax, 0xd
je 0x520eb3
cmp eax, 0xa
je 0x520eb3
sub esi, 1
jns 0x520e82
jmp 0x520eb3
lea esi, [ebx - 1]
test esi, esi
js 0x520eb3
nop
movzx eax, word [edx + esi*2]
cmp eax, 0xd
je 0x520eb3
cmp eax, 0xa
je 0x520eb3
sub esi, 1
jns 0x520ea0
inc esi
mov ecx, ebx
cmp ebx, dword [ebp - 0x12c]
mov ebx, dword [ebp - 0x12c]
mov dword [ebp - 0x134], esi
mov dword [ebp - 0x120], ecx
jge 0x520f06
movzx eax, word [edx + ecx*2]
cmp eax, 0xd
je 0x520ef1
cmp eax, 0xa
je 0x520f06
inc ecx
mov dword [ebp - 0x120], ecx
cmp ecx, ebx
jl 0x520ed0
mov dword [ebp - 0x158], ecx
jmp 0x520f4b
lea eax, [ecx + 1]
cmp eax, ebx
jge 0x520f06
cmp word [edx + ecx*2 + 2], 0xa
jne 0x520f06
mov ecx, eax
mov edx, ecx
jmp 0x520f12
mov edx, ecx
mov dword [ebp - 0x158], edx
cmp ecx, ebx
jge 0x520f45
mov ebx, dword [ebp - 0x138]
movzx eax, word [ebx + ecx*2]
cmp eax, 0xa
jne 0x520f2f
cmp word [ebx + ecx*2 - 2], 0xd
lea edx, [ecx - 1]
jne 0x520f37
dec edx
jmp 0x520f37
cmp eax, 0xd
jne 0x520f37
lea edx, [ecx - 1]
inc ecx
inc edx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x158], edx
mov edx, dword [ebp - 0x138]
mov dword [ebp - 0x108], esi
cmp esi, ecx
jge 0x521606
lea eax, [edx + esi*2]
mov dword [ebp - 0x148], 0
xor dl, dl
mov dword [ebp - 0x17c], eax
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x110], 0
mov byte [ebp - 0x101], dl
push 0x5e706c
lea eax, [ebp - 0x14]
push 5
push eax
call fcn.00565fee
add esp, 0xc
mov edi, 0x1d56c
xor ebx, ebx
nop
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax + 0x3c]
cmp byte [ecx + ebx + 0x1d560], 0
je 0x5210c0
mov edx, dword [ecx + edi]
lea eax, [edx - 1]
cmp eax, dword [ebp - 0x148]
jne 0x5210a4
mov edx, dword [ebp - 0x138]
lea eax, [ebp - 0xfc]
push eax
lea eax, [ebp - 0x100]
mov byte [ebp - 0x101], 1
push eax
mov eax, dword [ebp - 0x120]
push 1
lea eax, [edx + eax*2]
push eax
push dword [ebp - 0x14c]
lea eax, [ebp - 0x14]
push dword [ebp - 0x17c]
push eax
push dword [ebp + edi - 0x1d724]
mov eax, dword [ecx + 4]
call eax
add esp, 0x20
test eax, eax
jle 0x5214b7
mov eax, dword [ebp - 0x100]
mov esi, 1
push 1
push 1
push dword [ebp - 0x124]
mov ecx, dword [eax + 0x24]
push dword [ebp - 0x114]
mov eax, dword [eax + 0x20]
mov ecx, dword [ecx]
sub ecx, dword [eax]
lea eax, [ebp - 0x164]
push eax
push dword [ebp - 0x140]
sar ecx, 1
push dword [ebp - 0x130]
cmovne esi, ecx
mov ecx, dword [ebp - 0x10c]
push esi
push dword [ebp - 0x108]
push dword [ebp - 0x144]
push dword [ebp - 0x154]
push dword [ebp - 0x150]
call fcn.0051ff60
mov edx, dword [ebp - 0x110]
mov ecx, dword [ebp - 0x108]
movsx eax, dx
inc edx
mov dword [ebp - 0x110], edx
mov dword [ebp + eax*4 - 0x25c], esi
mov esi, dword [ebp - 0x134]
mov dword [ebp + eax*4 - 0x20c], ecx
jmp 0x5210c0
mov eax, dword [ebp - 0x108]
cmp eax, esi
jne 0x5210c6
mov ecx, dword [ebp - 0x120]
mov eax, ecx
sub eax, esi
cmp edx, eax
jg 0x521487
mov eax, dword [ebp - 0x108]
add edi, 4
inc ebx
cmp edi, 0x1d594
jl 0x520fa0
mov ecx, dword [ebp - 0x10c]
xor esi, esi
mov edi, 0x225e8
mov dword [ebp - 0x160], esi
mov edx, 0x227a4
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x128], edi
mov dword [ebp - 0x13c], edx
mov ebx, dword [ecx + 0x3c]
cmp byte [ebx + esi + 0x225bc], 0
je 0x521252
mov ecx, dword [edi + ebx - 0x24]
lea eax, [ecx - 1]
cmp eax, dword [ebp - 0x148]
mov eax, dword [ebp - 0x108]
jne 0x52122c
mov esi, dword [edi + ebx]
add eax, esi
mov byte [ebp - 0x101], 1
mov dword [ebp - 0x16c], esi
cmp eax, dword [ebp - 0x158]
jg 0x5214b7
xor eax, eax
test esi, esi
jle 0x52116c
mov eax, esi
lea edi, [ebp - 0x5c]
mov esi, dword [ebp - 0x14c]
mov ecx, eax
shr ecx, 1
rep movsd dword es:[edi], dword [esi]
adc ecx, ecx
rep movsw word es:[edi], word [esi]
mov edi, dword [ebp - 0x128]
mov esi, eax
add eax, eax
cmp eax, 0x42
jae 0x521814
xor ecx, ecx
mov word [ebp + eax - 0x5c], cx
lea ecx, [ebp - 0x5c]
call fcn.00408760
test al, al
je 0x5214b7
mov eax, dword [ebp - 0x13c]
movzx eax, word [eax + ebx]
push eax
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0x11c]
add eax, 0x2260c
add eax, ebx
push eax
call fcn.00521840
test al, al
je 0x5214b7
mov ebx, dword [ebp - 0x108]
lea eax, [ebp - 0x164]
push 1
push 1
push dword [ebp - 0x124]
mov ecx, dword [ebp - 0x10c]
push dword [ebp - 0x114]
push eax
push dword [ebp - 0x140]
push dword [ebp - 0x130]
push esi
push ebx
push dword [ebp - 0x144]
push dword [ebp - 0x154]
push dword [ebp - 0x150]
call fcn.0051ff60
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x13c]
movsx eax, cx
inc ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp + eax*4 - 0x25c], esi
mov esi, dword [ebp - 0x160]
mov dword [ebp + eax*4 - 0x20c], ebx
jmp 0x521246
mov ebx, dword [ebp - 0x134]
cmp eax, ebx
jne 0x52124c
mov eax, dword [ebp - 0x120]
sub eax, ebx
cmp ecx, eax
jg 0x52148b
mov eax, dword [ebp - 0x108]
mov ecx, dword [ebp - 0x10c]
add dword [ebp - 0x11c], 0x42
add edx, 2
inc esi
mov dword [ebp - 0x13c], edx
add edi, 4
mov dword [ebp - 0x160], esi
mov dword [ebp - 0x128], edi
cmp edx, 0x227b0
jl 0x521100
xor esi, esi
mov ebx, 0x247ec
mov dword [ebp - 0x128], esi
mov edi, 0x227cc
mov dword [ebp - 0x13c], esi
mov dword [ebp - 0x11c], ebx
jmp 0x5212a6
mov ecx, dword [ebp - 0x10c]
mov ecx, dword [ecx + 0x3c]
cmp byte [ecx + esi + 0x227b0], 0
je 0x521435
mov edx, dword [edi + ecx - 0x18]
lea eax, [edx - 1]
cmp eax, dword [ebp - 0x148]
jne 0x521413
mov eax, dword [edi + ecx]
add eax, dword [ebp - 0x108]
mov byte [ebp - 0x101], 1
cmp eax, dword [ebp - 0x158]
jg 0x5214b7
push 0x802
call fcn.00560858
mov ebx, dword [ebp - 0x10c]
xor edx, edx
add esp, 4
mov esi, eax
mov ecx, dword [ebx + 0x3c]
cmp dword [edi + ecx], edx
jle 0x521323
mov ecx, dword [ebp - 0x14c]
nop dword [eax + eax]
mov ax, word [ecx]
lea ecx, [ecx + 2]
mov word [esi + edx*2], ax
inc edx
mov eax, dword [ebx + 0x3c]
cmp edx, dword [edi + eax]
jl 0x521310
mov ecx, dword [ebp - 0x11c]
xor eax, eax
mov word [esi + edx*2], ax
mov eax, dword [ebx + 0x3c]
mov ebx, dword [ebp - 0x13c]
add ebx, 0x227e4
add ebx, eax
movsx eax, word [ecx + eax]
cmp eax, 5
ja case.default.0x52134d
jmp dword [eax*4 + 0x52181c]
mov edx, esi
mov ecx, ebx
call fcn.00408850
jmp 0x521388
mov edx, esi
mov ecx, ebx
call fcn.00408850
test al, al
jne 0x521390
mov edx, esi
mov ecx, ebx
jmp 0x521383
mov edx, esi
mov ecx, ebx
call fcn.00408850
test al, al
jne 0x521390
mov ecx, esi
mov edx, ebx
call fcn.004087d0
test al, al
je case.default.0x52134d
push esi
call fcn.00560853
mov ecx, dword [ebp - 0x10c]
add esp, 4
mov ebx, dword [ebp - 0x108]
mov eax, dword [ecx + 0x3c]
push 1
push 1
push dword [ebp - 0x124]
mov esi, dword [edi + eax]
lea eax, [ebp - 0x164]
push dword [ebp - 0x114]
push eax
push dword [ebp - 0x140]
push dword [ebp - 0x130]
push esi
push ebx
push dword [ebp - 0x144]
push dword [ebp - 0x154]
push dword [ebp - 0x150]
call fcn.0051ff60
mov ecx, dword [ebp - 0x110]
movsx eax, cx
inc ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp + eax*4 - 0x20c], ebx
mov ebx, dword [ebp - 0x11c]
mov dword [ebp + eax*4 - 0x25c], esi
mov esi, dword [ebp - 0x128]
jmp 0x52142f
mov ecx, dword [ebp - 0x134]
mov eax, dword [ebp - 0x108]
cmp eax, ecx
jne 0x521435
mov eax, dword [ebp - 0x120]
sub eax, ecx
cmp edx, eax
jg 0x52148b
mov eax, dword [ebp - 0x108]
add dword [ebp - 0x13c], 0x802
add ebx, 2
inc esi
mov dword [ebp - 0x11c], ebx
add edi, 4
mov dword [ebp - 0x128], esi
cmp ebx, 0x247f4
jl 0x5212a0
inc dword [ebp - 0x148]
inc eax
add dword [ebp - 0x14c], 2
mov ecx, dword [ebp - 0x120]
mov dword [ebp - 0x108], eax
cmp eax, ecx
jge 0x5214a0
mov esi, dword [ebp - 0x134]
jmp 0x520f84
mov al, 1
jmp 0x5214a2
mov ecx, dword [ebp - 0x120]
mov al, 1
jmp 0x5214a2
push esi
call fcn.00560853
add esp, 4
jmp 0x5214b7
xor al, al
cmp byte [ebp - 0x101], 0
je 0x521600
test al, al
je 0x5215f1
mov eax, dword [ebp - 0x110]
xor ebx, ebx
cwde
mov dword [ebp - 0x108], ebx
test eax, eax
jle 0x5215b2
nop
mov eax, dword [ebp + ebx*4 - 0x20c]
xor edi, edi
mov edx, eax
cmp dword [ebp + ebx*4 - 0x25c], edi
jle 0x52156a
lea ecx, [eax*4]
mov eax, dword [ebp - 0x108]
mov ebx, ecx
test edi, edi
je 0x521557
mov esi, dword [ebp - 0x144]
mov eax, dword [ebx + esi]
cmp eax, dword [ebx + esi - 4]
je 0x521551
mov eax, dword [ecx + esi]
mov dword [ebp - 0x16c], eax
mov esi, dword [eax + 0x24]
test esi, esi
je 0x521539
nop word [eax + eax]
mov eax, esi
mov esi, dword [esi]
push 0xc
push eax
call fcn.00560815
add esp, 8
test esi, esi
jne 0x521520
mov eax, dword [ebp - 0x16c]
mov ecx, dword [ebp - 0x108]
mov dword [eax + 0x24], 0
mov edx, dword [ebp + ecx*4 - 0x20c]
mov ecx, ebx
add edx, edi
mov eax, dword [ebp - 0x108]
inc edi
add ebx, 4
cmp edi, dword [ebp + eax*4 - 0x25c]
jl 0x5214f7
mov ebx, dword [ebp - 0x108]
mov eax, dword [ebp - 0x144]
mov edi, dword [eax + edx*4]
mov esi, dword [edi + 0x24]
test esi, esi
je 0x521593
nop word [eax + eax]
mov eax, esi
mov esi, dword [esi]
push 0xc
push eax
call fcn.00560815
add esp, 8
test esi, esi
jne 0x521580
mov ecx, dword [ebp - 0x110]
inc ebx
movsx eax, cx
mov dword [edi + 0x24], 0
mov dword [ebp - 0x108], ebx
cmp ebx, eax
jl 0x5214d0
cmp byte [ebp - 0x115], 0
mov edi, dword [ebp - 0x10c]
mov ecx, dword [ebp - 0x120]
jne 0x521606
mov dword [edi + 0x2182c], 0
mov dword [edi + 0x21830], 0
mov dword [edi + 0x21834], 0
mov dword [edi + 0x21838], 0
jmp 0x521606
mov eax, dword [ebp - 0x190]
mov byte [ebp - 0x115], 1
inc dword [eax]
mov edi, dword [ebp - 0x10c]
mov esi, dword [ebp - 0x12c]
mov ebx, ecx
cmp ecx, esi
jl 0x520e62
mov edx, dword [ebp - 0x140]
mov ebx, esi
push dword [ebp - 0x138]
sub ebx, edx
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x164], ebx
call fcn.00560853
push dword [ebp - 0x150]
call fcn.00560853
push dword [ebp - 0x154]
call fcn.00560853
push dword [ebp - 0x144]
call fcn.00560853
add esp, 0x10
mov esi, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x114]
mov eax, dword [ebp - 0x130]
mov dl, byte [ebp + 0x20]
mov esi, dword [esi]
mov dword [ebp - 0x124], esi
test esi, esi
jne 0x520c47
mov eax, dword [edi + 0x48]
mov ecx, dword [ecx]
mov dword [ebp - 0x114], ecx
cmp byte [eax + 0x2083d], 0
jne 0x5217ff
mov esi, dword [ebp - 0x15c]
cmp esi, 0x1f4
jle 0x5216e7
mov eax, dword [ebp - 0x170]
inc eax
mov dword [ebp - 0x170], eax
imul eax, eax, 0x64
cdq
idiv esi
mov esi, eax
cmp esi, dword [ebp - 0x174]
je 0x5216e7
call fcn.0040f410
mov ecx, dword [edi + 0x40]
push esi
push 0
push 0x801c
push dword [ecx]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x114]
mov dword [ebp - 0x174], esi
test ecx, ecx
je 0x521702
mov esi, dword [ecx + 0x1c]
mov eax, dword [ebp - 0x130]
mov dl, byte [ebp + 0x20]
mov dword [ebp - 0x124], esi
jmp 0x520c47
mov ecx, dword [ebp - 0x100]
test ecx, ecx
je 0x521718
mov eax, dword [edi + 0x3c]
push ecx
mov eax, dword [eax + 8]
call eax
add esp, 4
xor esi, esi
nop word [eax + eax]
mov eax, dword [edi + 0x3c]
cmp byte [esi + eax + 0x1d560], 0
je 0x52173c
push dword [ebp + esi*4 - 0x1b8]
call fcn.00560853
add esp, 4
inc esi
cmp esi, 0xa
jl 0x521720
mov eax, dword [ebp - 0x15c]
cmp eax, 0x1f4
jle 0x52175c
mov eax, dword [edi + 0x40]
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [edi + 0x2182c]
test esi, esi
je 0x5217ff
mov ecx, dword [edi + 0x21830]
mov al, 1
test al, al
je 0x5217aa
mov edx, dword [edi + 0x21834]
test ecx, ecx
jne 0x521787
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x5217a0
mov eax, dword [ecx + 0x34]
test eax, eax
je 0x52179a
nop
cmp eax, edx
je 0x5217e6
mov eax, dword [eax]
test eax, eax
jne 0x521790
mov ecx, dword [ecx]
test ecx, ecx
jne 0x521787
mov al, 1
mov esi, dword [esi]
xor ecx, ecx
test esi, esi
jne 0x521772
push dword [ebp - 0x180]
mov ecx, edi
push dword [ebp - 0x184]
push dword [ebp - 0x188]
push dword [ebp - 0x18c]
call fcn.00520530
mov ecx, dword [ebp - 0x178]
mov byte [ecx], al
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0056060a
mov esp, ebp
pop ebp
ret 0x1c
mov eax, dword [eax + 0x24]
mov dword [edi + 0x21838], eax
xor al, al
mov dword [edi + 0x2182c], esi
mov dword [edi + 0x21830], ecx
jmp 0x5217a2
mov ecx, dword [ebp - 8]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056060a
mov esp, ebp
pop ebp
ret 0x1c
call fcn.0056073a
nop dword [eax]
push esp
adc edx, dword [edx]
push esp
adc edx, dword [edx]
insb byte es:[edi], dx
adc edx, dword [edx]
pop edi
adc edx, dword [edx]
jg 0x521841
push edx
add byte [edx + 0x13], dh
push edx
add ah, cl
int3
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x5f3008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x110]
push esi
mov esi, dword [ebp + 0xc]
push edi
push ecx
lea ecx, [ebp - 0x10c]
push ecx
push eax
call fcn.00521ba0
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x88]
push eax
push esi
call fcn.00521ba0
movsx eax, word [ebp + 0x10]
cmp eax, 5
ja case.default.0x52188c
jmp dword [eax*4 + 0x521b88]
mov ax, word [ebp - 0x110]
cmp ax, word [ebp - 0x114]
jne case.default.0x52188c
lea ecx, [ebp - 0x88]
lea eax, [ebp - 0x10c]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x5218d6
test dx, dx
je 0x5218d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x5218d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x5218b0
xor eax, eax
jmp 0x5218db
sbb eax, eax
or eax, 1
test eax, eax
je 0x521b73
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056060a
mov esp, ebp
pop ebp
ret 0xc
mov ax, word [ebp - 0x110]
cmp ax, word [ebp - 0x114]
jne 0x521b73
lea ecx, [ebp - 0x88]
lea eax, [ebp - 0x10c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x521942
test dx, dx
je 0x521939
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x521942
add eax, 4
add ecx, 4
test dx, dx
jne 0x521917
xor eax, eax
test eax, eax
jmp 0x521b6d
sbb eax, eax
or eax, 1
test eax, eax
jmp 0x521b6d
mov ax, word [ebp - 0x110]
mov cx, word [ebp - 0x114]
test ax, ax
je 0x521967
cmp ax, 2
jne 0x521971
cmp cx, 1
je 0x521b73
cmp ax, 1
jne 0x521984
mov eax, 1
cmp ax, cx
jmp 0x521b54
cmp ax, 2
jne case.default.0x52188c
mov eax, 2
cmp ax, cx
jne case.default.0x52188c
lea edx, [ebp - 0x10c]
lea ecx, [ebp - 0x88]
jmp 0x521b66
mov si, word [ebp - 0x110]
mov di, word [ebp - 0x114]
cmp si, di
jne 0x521a03
lea ecx, [ebp - 0x88]
lea eax, [ebp - 0x10c]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x5219f6
test dx, dx
je 0x5219f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x5219f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x5219d0
xor eax, eax
jmp 0x5219fb
sbb eax, eax
or eax, 1
test eax, eax
je 0x521b73
test si, si
je 0x521a0e
cmp si, 2
jne 0x521a18
cmp di, 1
je 0x521b73
cmp si, 1
jne 0x521a2b
mov eax, 1
cmp ax, di
jmp 0x521b54
cmp si, 2
jne case.default.0x52188c
mov eax, 2
cmp ax, di
jne case.default.0x52188c
lea edx, [ebp - 0x10c]
lea ecx, [ebp - 0x88]
jmp 0x521b66
mov ax, word [ebp - 0x114]
test ax, ax
je 0x521a92
cmp ax, 2
je 0x521a92
mov cx, word [ebp - 0x110]
cmp cx, 1
jne 0x521aa3
mov ecx, 1
cmp cx, ax
jne case.default.0x52188c
lea edx, [ebp - 0x10c]
lea ecx, [ebp - 0x88]
jmp 0x521b66
mov cx, word [ebp - 0x110]
cmp cx, 1
je 0x521b73
cmp cx, 2
jne case.default.0x52188c
mov ecx, 2
cmp cx, ax
jmp 0x521b54
mov di, word [ebp - 0x110]
mov si, word [ebp - 0x114]
cmp di, si
jne 0x521b0f
lea ecx, [ebp - 0x88]
lea eax, [ebp - 0x10c]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x521b06
test dx, dx
je 0x521b02
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x521b06
add eax, 4
add ecx, 4
test dx, dx
jne 0x521ae0
xor eax, eax
jmp 0x521b0b
sbb eax, eax
or eax, 1
test eax, eax
je 0x521b73
test si, si
je 0x521b3c
cmp si, 2
je 0x521b3c
cmp di, 1
jne 0x521b42
mov eax, 1
cmp ax, si
jne case.default.0x52188c
lea edx, [ebp - 0x10c]
lea ecx, [ebp - 0x88]
jmp 0x521b66
cmp di, 1
je 0x521b73
cmp di, 2
jne case.default.0x52188c
mov eax, 2
cmp ax, si
jne case.default.0x52188c
lea edx, [ebp - 0x88]
lea ecx, [ebp - 0x10c]
call fcn.004087d0
test al, al
je case.default.0x52188c
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0056060a
mov esp, ebp
pop ebp
ret 0xc