Function at 0x542270
Capabilities:
Check for software breakpoints

Disassembly:
mov eax, 0x142c
call fcn.0054fc30
mov eax, dword [0x59b000]
xor eax, esp
mov dword [esp + 0x1428], eax
push ebx
push ebp
xor ebx, ebx
cmp dword [esp + 0x143c], 0x87654321
push esi
push edi
mov dword [esp + 0x20], ebx
je 0x542719
cmp dword [esp + 0x1440], ebx
je 0x542375
push 0xffc
lea eax, [esp + 0x40]
push ebx
push eax
call fcn.0054b440
mov eax, dword fs:[0x30]
add esp, 0xc
test eax, eax
je 0x542375
mov esi, dword [eax + 0x38]
mov dword [esp + 0x10], esi
test esi, esi
je 0x542375
xor bl, bl
mov dword [esp + 0x24], 0xffffffff
xor dl, dl
xor cl, cl
xor ebp, ebp
cmp dword [0x59a4b0], 0xffffffff
jne 0x542300
mov eax, dword [esi]
mov dword [0x59a4b0], eax
mov eax, dword [esi]
test eax, eax
je 0x54231e
cmp eax, 2
je 0x54231e
cmp eax, 4
je 0x54231e
cmp eax, 6
je 0x54231e
mov byte [0x59a4c8], 1
jmp 0x542320
mov cl, 1
mov edi, dword [esi]
cmp edi, 6
jne 0x54232d
mov dword [esp + 0x24], ebp
mov dl, 1
test cl, cl
je 0x542373
mov eax, dword [esp + 0x1440]
mov esi, 1
mov ecx, eax
sub esi, eax
mov al, byte [ecx]
xor al, 0xcc
cmp al, 0xcc
je 0x542392
cmp al, 0xe1
jne 0x542363
test dl, dl
jne 0x54236d
cmp dword [esp + 0x24], 0xffffffff
mov dl, 1
jne 0x54236d
lea eax, [esi + ecx]
mov dword [esp + 0x24], eax
jmp 0x54236d
cmp al, 0xe2
jne 0x54236d
test dl, dl
jne 0x542396
mov bl, 1
inc ebp
inc ecx
test bl, bl
je 0x542341
xor ebx, ebx
mov ecx, dword [esp + 0x1438]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0054a992
add esp, 0x142c
ret 8
test dl, dl
je 0x542373
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x542373
test ebp, ebp
je 0x542373
sub ebp, eax
mov dword [esp + 0x30], ebp
cmp edi, 6
jne 0x5423b7
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0xc]
jmp 0x5423d5
cmp edi, 4
jne 0x5423c5
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0xc]
jmp 0x5423d5
cmp edi, 2
je 0x5423ce
test edi, edi
jne 0x542373
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 4]
mov dword [esp + 0x18], edx
test edx, edx
je 0x542373
mov eax, dword [esp + 0x18]
lea esi, [ecx + 8]
lea edx, [ecx + 0x20]
mov dword [esp + 0x34], 0
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], edx
mov ebp, dword [ecx]
cmp ebp, 6
jne 0x542408
mov eax, dword [edx]
lea ebx, [ecx + eax]
mov ecx, dword [edx + 4]
jmp 0x54242d
cmp ebp, 4
jne 0x542418
mov eax, dword [edx - 0xc]
lea ebx, [ecx + eax]
mov ecx, dword [edx - 8]
jmp 0x54242d
cmp ebp, 2
je 0x542425
test ebp, ebp
jne 0x5426cd
mov eax, dword [esi]
lea ebx, [ecx + eax]
mov ecx, dword [esi + 4]
mov dword [esp + 0x1c], ebx
test ecx, ecx
je 0x542713
test eax, eax
je 0x542713
mov edi, dword [esp + 0x30]
lea esi, [edi + edi]
cmp ecx, esi
jne 0x542713
mov edx, dword [esp + 0x1440]
mov al, 1
mov dword [esp + 0x14], eax
mov ecx, edi
mov eax, dword [esp + 0x24]
shr ecx, 1
add eax, ecx
mov cl, byte [ebx + ecx*2]
mov dl, byte [eax + edx]
cmp dl, cl
je 0x542491
lea eax, [edx - 0x61]
cmp al, 0x19
ja 0x54247b
add dl, 0xe0
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x542485
add cl, 0xe0
cmp dl, cl
je 0x542491
xor al, al
mov dword [esp + 0x14], eax
jmp 0x5424e1
mov eax, dword [esp + 0x24]
mov ecx, edi
mov edx, dword [esp + 0x1440]
shr ecx, 2
add eax, ecx
mov cl, byte [ebx + ecx*2]
mov dl, byte [eax + edx]
cmp dl, cl
je 0x5424dd
lea eax, [edx - 0x61]
cmp al, 0x19
ja 0x5424b7
add dl, 0xe0
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x5424c1
add cl, 0xe0
mov eax, dword [esp + 0x14]
cmp dl, cl
mov dword [esp + 0x14], 0
movzx eax, al
cmovne eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
jmp 0x5424e1
mov eax, dword [esp + 0x14]
test al, al
je 0x542562
cmp ebp, 6
jne 0x542520
xor ecx, ecx
cmp dword [esp + 0x30], ecx
jbe 0x542520
lea eax, [esi + 2]
add eax, ebx
mov ebx, dword [esp + 0x30]
jmp 0x542500
cmp byte [eax - 2], 0x2d
jne 0x542512
mov dl, byte [eax]
cmp dl, 0x6c
je 0x54251c
cmp dl, 0x4c
je 0x54251c
inc ecx
sub eax, 2
cmp ecx, ebx
jb 0x542500
jmp 0x542520
mov edi, ebx
sub edi, ecx
xor esi, esi
test edi, edi
je 0x542562
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1440]
add ebx, ecx
mov eax, dword [esp + 0x1c]
mov cl, byte [ebx + esi]
mov dl, byte [eax + esi*2]
cmp cl, dl
je 0x54255d
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x54254b
add cl, 0xe0
lea eax, [edx - 0x61]
cmp al, 0x19
ja 0x542555
add dl, 0xe0
cmp cl, dl
jne 0x54258f
mov eax, dword [esp + 0x1c]
inc esi
cmp esi, edi
jb 0x542537
mov eax, dword [esp + 0x14]
test al, al
je 0x5426c1
xor edx, edx
xor ecx, ecx
xor esi, esi
mov dword [esp + 0x1c], edx
xor eax, eax
cmp ebp, 6
jne 0x542593
mov edx, dword [esp + 0x28]
mov ecx, dword [edx + 0xc]
add ecx, dword [esp + 0x10]
mov edx, dword [edx + 0x10]
jmp 0x5425be
xor al, al
jmp 0x542566
cmp ebp, 4
jne 0x5425a8
mov edx, dword [esp + 0x28]
mov esi, dword [edx + 4]
add esi, dword [esp + 0x10]
mov edx, dword [esi + 4]
jmp 0x5425be
cmp ebp, 2
je 0x5425b1
test ebp, ebp
jne 0x5425c2
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 8]
add eax, dword [esp + 0x10]
mov edx, dword [eax]
mov dword [esp + 0x1c], edx
xor ebp, ebp
test edx, edx
je 0x5426c1
mov ebx, edx
lea edi, [ecx - 8]
shl ebx, 4
add ebx, eax
lea eax, [edx + edx*4]
shl eax, 2
lea edx, [esi - 4]
add edx, eax
add edi, eax
sub esi, ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x38], esi
lea ecx, [ecx]
mov ecx, dword [esp + 0x10]
xor esi, esi
xor eax, eax
mov ecx, dword [ecx]
cmp ecx, 6
jne 0x542606
mov esi, dword [edi + 4]
mov eax, dword [edi]
jmp 0x542624
cmp ecx, 4
jne 0x542616
mov eax, dword [esp + 0x38]
mov esi, dword [edx]
mov eax, dword [eax + edi]
jmp 0x542624
cmp ecx, 2
je 0x54261f
test ecx, ecx
jne 0x542624
mov esi, dword [ebx]
mov eax, dword [ebx - 4]
mov byte [esp + 0x1038], 0
test esi, esi
je 0x5426a9
test eax, eax
je 0x5426a9
mov edx, dword [esp + 0x10]
add edx, eax
shr esi, 1
mov eax, 0
je 0x542652
mov cl, byte [edx + eax*2]
mov byte [esp + eax + 0x1038], cl
inc eax
cmp eax, esi
jb 0x542643
cmp esi, 0x400
jae 0x54273d
lea eax, [esp + 0x1038]
mov byte [esp + esi + 0x1038], 0
push eax
call fcn.00540330
test eax, eax
je 0x542688
cmp eax, dword [esp + 0x1444]
jne 0x5426f7
mov dword [esp + 0x20], 0
cmp byte [esp + 0x1038], 0
je 0x5426a5
push esi
lea eax, [esp + 0x103c]
push 0
push eax
call fcn.0054b440
add esp, 0xc
mov edx, dword [esp + 0x14]
inc ebp
sub edx, 0x14
sub edi, 0x14
mov dword [esp + 0x14], edx
sub ebx, 0x10
cmp ebp, dword [esp + 0x1c]
jb 0x5425f0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x34]
add edx, 0x18
add dword [esp + 0x2c], 0xc
inc ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x28], edx
cmp ebp, eax
jae 0x542375
mov esi, dword [esp + 0x2c]
jmp 0x5423f7
mov ebx, eax
mov dword [esp + 0x20], ebx
test eax, eax
jne 0x542375
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
jmp 0x5426d1
mov ecx, dword [esp + 0x10]
jmp 0x5426c9
cmp dword [0x59a4dc], 0x33c0
jne 0x542375
call fcn.005456fe
add eax, 0x33c0
mov dword [0x59a4dc], eax
jmp 0x542375
call fcn.0054f847
int3