Function at 0x5090e0
Capabilities:
Check for peb beingdebugged flag
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5db3c1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x194
mov al, byte [esp + 2]
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x30], ecx
mov byte [esp + 0x1c], al
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov cl, byte [esp + 0x12]
sub esp, 0x10
mov ebx, esp
mov dword [esp + 0x28], esp
push esi
mov dword [esp + 0x1c0], esi
mov byte [ebx], cl
mov ecx, ebx
call fcn.00401850
mov edi, 0x619c18
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
mov ecx, ebx
push ebp
call fcn.004018c0
test al, al
je 0x50917b
mov edi, dword [ebx + 4]
mov ecx, ebp
mov edx, ecx
mov esi, 0x619c18
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx + 8], ebp
mov ebx, dword [ebx + 4]
add ebx, ebp
xor esi, esi
mov byte [ebx], 0
push esi
lea ecx, [esp + 0x50]
call fcn.00542e70
push esi
push esi
push ecx
mov byte [esp + 0x1b8], 1
mov ecx, esp
mov dword [esp + 0x24], esp
push 6
push 0x609448
call fcn.00558100
push ecx
mov byte [esp + 0x1bc], 2
mov ecx, esp
mov dword [esp + 0x48], esp
push 6
push 0x60e420
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0x1bc], 1
call fcn.00543af0
mov edi, dword [esp + 0x30]
push 8
mov ecx, edi
call fcn.00509f70
cmp ax, si
jge 0x50926c
push esi
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push 6
push 0x6094cc
call fcn.00558100
push ecx
mov byte [esp + 0x1bc], 3
mov ecx, esp
mov dword [esp + 0x40], esp
push 6
push 0x609440
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0x1bc], 1
call fcn.00543af0
push 1
lea ecx, [esp + 0x44]
mov byte [esp + 0x1b0], 0
call fcn.00401850
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
cmp edi, eax
mov dword [esp + 0x1ac], 0xffffffff
mov ebx, eax
je 0x509397
push esi
mov ecx, edi
call fcn.004e70e0
add edi, 0x1c
cmp edi, ebx
jne 0x509258
jmp 0x509393
jne 0x5092f9
push esi
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push 6
push 0x609448
call fcn.00558100
push ecx
mov byte [esp + 0x1bc], 4
mov ecx, esp
mov dword [esp + 0x40], esp
push 6
push 0x60e030
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0x1bc], 1
call fcn.00543af0
push 1
lea ecx, [esp + 0x44]
mov byte [esp + 0x1b0], 0
call fcn.00401850
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
cmp edi, eax
mov dword [esp + 0x1ac], 0xffffffff
mov ebx, eax
je 0x509397
push esi
mov ecx, edi
call fcn.004e70e0
add edi, 0x1c
cmp edi, ebx
jne 0x5092e5
jmp 0x509393
push 0xc8
call fcn.00401520
add esp, 4
mov ecx, edi
call fcn.00509000
test eax, eax
jg 0x5093a8
push esi
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push 6
push 0x6094cc
call fcn.00558100
push ecx
mov byte [esp + 0x1bc], 5
mov ecx, esp
mov dword [esp + 0x40], esp
push 6
push 0x609440
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0x1bc], 1
call fcn.00543af0
push 1
lea ecx, [esp + 0x44]
mov byte [esp + 0x1b0], 0
call fcn.00401850
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
cmp edi, eax
mov dword [esp + 0x1ac], 0xffffffff
mov ebx, eax
je 0x509397
push esi
mov ecx, edi
call fcn.004e70e0
add edi, 0x1c
cmp edi, ebx
jne 0x509384
mov edi, dword [esp + 0x20]
push edi
call fcn.005bc500
add esp, 4
xor ax, ax
jmp 0x509f57
push 0xff
lea eax, [esp + 0xa8]
push 0x609488
push eax
call fcn.005bcf3d
push ecx
mov cl, byte [esp + 0x22]
mov ebx, esp
mov dword [esp + 0x48], esp
push 0
mov byte [ebx], cl
mov ecx, ebx
call fcn.00401850
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
mov ecx, ebx
push ebp
call fcn.004018c0
test al, al
je 0x50941c
mov edi, dword [ebx + 4]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0xb4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 4]
mov dword [ebx + 8], ebp
add ebp, eax
mov byte [ebp], 0
sub esp, 0x10
lea eax, [esp + 0x32]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
push 0x60af04
mov byte [esp + 0x1d4], 6
call fcn.00404ee0
sub esp, 0x10
lea edx, [esp + 0x67]
mov ecx, esp
mov dword [esp + 0xac], esp
push edx
push 0x60cf40
mov byte [esp + 0x1e4], 7
call fcn.00404ee0
sub esp, 0x10
lea eax, [esp + 0x53]
mov ecx, esp
mov dword [esp + 0x90], esp
push eax
push 0x619c18
mov byte [esp + 0x1f4], 8
call fcn.00404ee0
sub esp, 0x10
mov byte [esp + 0x1fc], 9
mov esi, esp
mov dword [esp + 0x7c], esp
push ecx
mov ecx, esp
mov dword [esp + 0x68], esp
push 6
push 0x60df70
call fcn.00558100
push esi
call fcn.00560f40
sub esp, 8
mov byte [esp + 0x20c], 0xa
mov esi, esp
mov dword [esp + 0x74], esp
push ecx
mov ecx, esp
mov dword [esp + 0x78], esp
push 6
push 0x60df70
call fcn.00558100
push esi
call fcn.00560f40
add esp, 8
lea ecx, [esp + 0xf0]
mov byte [esp + 0x20c], 1
push ecx
mov ecx, 0x619a58
call fcn.00543d00
mov ecx, dword [0x5e5150]
mov dx, word [eax]
push ecx
add eax, 4
push 0
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1b8], 0xb
mov word [esp + 0x48], dx
call fcn.004120f0
push 1
lea ecx, [esp + 0x98]
mov byte [esp + 0x1b0], 1
call fcn.00401850
lea ecx, [esp + 0x3c]
call fcn.00551f50
cmp ax, 2
jne 0x509582
push 1
lea ecx, [esp + 0x44]
mov byte [esp + 0x1b0], 0
call fcn.00401850
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
cmp esi, edi
mov dword [esp + 0x1ac], 0xffffffff
je 0x50957c
push 0
mov ecx, esi
call fcn.004e70e0
add esi, 0x1c
cmp esi, edi
jne 0x509568
mov esi, dword [esp + 0x20]
push esi
jmp 0x509f4b
lea edx, [esp + 0x80]
lea ecx, [esp + 0x3c]
push edx
call fcn.00542fb0
mov eax, dword [eax + 4]
test eax, eax
jne 0x50959f
mov eax, 0x5e514c
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xa4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x84]
call fcn.00401850
lea ecx, [esp + 0xa4]
push ecx
call fcn.005bd3b2
add esp, 4
mov byte [esp + 0x18], al
xor ebp, ebp
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x24]
mov esi, eax
call fcn.004e6490
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x2c], esi
call fcn.00508b80
cmp ax, bp
jl 0x509d8d
je 0x509dbb
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 6
push 0x60e404
call fcn.00558100
lea edx, [esp + 0x70]
push edx
call fcn.00560f40
add esp, 8
mov al, byte [esp + 0x13]
push ebp
lea ecx, [esp + 0x5c]
mov byte [esp + 0x1b0], 0xe
mov byte [esp + 0x5c], al
call fcn.00401850
mov edi, 0x619c18
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x5c]
push ebx
call fcn.004018c0
test al, al
je 0x5096a4
mov edi, dword [esp + 0x5c]
mov ecx, ebx
mov edx, ecx
mov esi, 0x619c18
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x60], ebx
mov byte [eax + ebx], 0
push 1
lea edx, [esp + 0x5c]
sub esp, 0x10
mov byte [esp + 0x1c0], 0xf
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.00411fd0
sub esp, 0x10
lea eax, [esp + 0x90]
mov ecx, esp
mov dword [esp + 0x50], esp
push eax
mov byte [esp + 0x1d4], 0x10
call fcn.00411fd0
mov ecx, dword [0x619a60]
mov byte [esp + 0x1d0], 0xf
call fcn.005455c0
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0xa4]
and edi, 0xff
push edi
push 0x609488
push ecx
call fcn.005bcf3d
add esp, 0xc
push ebp
push 0xffff
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x60dc58
call fcn.00558100
sub esp, 0x10
lea edx, [esp + 0x2f]
mov ecx, esp
mov dword [esp + 0x48], esp
lea eax, [esp + 0xc0]
push edx
push eax
mov byte [esp + 0x1d0], 0x11
call fcn.00404ee0
push ecx
mov byte [esp + 0x1cc], 0x12
mov ecx, esp
mov dword [esp + 0x70], esp
push 6
push 0x60df58
call fcn.00558100
mov ecx, dword [0x619a60]
mov byte [esp + 0x1cc], 0xf
call fcn.00545cb0
xor esi, esi
xor ebx, ebx
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x5098b2
mov ecx, dword [esp + 0x24]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp esi, edx
jae 0x5098b2
push esi
lea ecx, [esp + 0x20]
call fcn.004e6470
push ecx
add eax, 8
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.00558070
call fcn.0043b980
mov edx, dword [esp + 0x24]
add esp, 4
lea ecx, [esp + 0x1c]
mov al, byte [edx + ebx]
push ebp
cmp al, 1
push 0xffff
push esi
jne 0x509842
call fcn.004e6470
push ecx
add eax, 8
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.00558070
push esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1bc], 0x13
call fcn.004e6470
sub esp, 0x10
add eax, 0xc
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
call fcn.00411fd0
push esi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1cc], 0x14
call fcn.004e6470
push ecx
add eax, 4
mov ecx, esp
mov dword [esp + 0x70], esp
push eax
call fcn.00558070
jmp 0x509896
call fcn.004e6470
push ecx
add eax, 8
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.00558070
push esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1bc], 0x15
call fcn.004e6470
sub esp, 0x10
add eax, 0xc
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
call fcn.00411fd0
push ecx
mov byte [esp + 0x1cc], 0x16
mov ecx, esp
mov dword [esp + 0x70], esp
push 6
push 0x60df50
call fcn.00558100
mov ecx, dword [0x619a60]
mov byte [esp + 0x1cc], 0xf
call fcn.00545cb0
inc esi
add ebx, 0x1c
jmp 0x509780
mov ecx, dword [0x619a60]
push ebp
call fcn.00545f70
cmp ax, 0xb
je 0x509e00
cmp ax, 9
jne 0x509928
inc edi
cmp edi, 0xff
jle 0x50991f
push ebp
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x6094cc
call fcn.00558100
push ecx
mov byte [esp + 0x1bc], 0x17
mov ecx, esp
mov dword [esp + 0x3c], esp
push 6
push 0x60dfd0
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0x1bc], 0xf
call fcn.00543af0
jmp 0x509d15
inc byte [esp + 0x18]
jmp 0x509d15
cmp ax, 8
jne 0x509987
mov al, byte [esp + 0x18]
test al, al
jne 0x50997e
push ebp
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x6094cc
call fcn.00558100
push ecx
mov byte [esp + 0x1bc], 0x18
mov ecx, esp
mov dword [esp + 0x3c], esp
push 6
push 0x60dfd0
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0x1bc], 0xf
call fcn.00543af0
jmp 0x509d15
dec byte [esp + 0x18]
jmp 0x509d15
cmp ax, 0xc
jne 0x509d15
push 0xff
lea eax, [esp + 0xa8]
push 0x609488
push eax
call fcn.005bcf3d
push ecx
mov cl, byte [esp + 0x23]
mov ebp, esp
xor eax, eax
lea edi, [esp + 0xb4]
mov dword [esp + 0x24], esp
mov byte [ebp], cl
or ecx, 0xffffffff
mov dword [ebp + 4], eax
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov ecx, ebp
push ebx
call fcn.004018c0
test al, al
je 0x509a05
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0xb4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
mov dword [ebp + 8], ebx
add ebx, eax
mov byte [ebx], 0
sub esp, 0x10
lea eax, [esp + 0x57]
mov ecx, esp
mov dword [esp + 0x4c], esp
push eax
push 0x60af04
mov byte [esp + 0x1d4], 0x19
call fcn.00404ee0
sub esp, 0x10
lea edx, [esp + 0x42]
mov ecx, esp
mov dword [esp + 0x80], esp
push edx
push 0x60cf40
mov byte [esp + 0x1e4], 0x1a
call fcn.00404ee0
sub esp, 0x10
lea eax, [esp + 0xab]
mov ecx, esp
mov dword [esp + 0xbc], esp
push eax
push 0x619c18
mov byte [esp + 0x1f4], 0x1b
call fcn.00404ee0
sub esp, 0x10
mov byte [esp + 0x1fc], 0x1c
mov esi, esp
mov dword [esp + 0x88], esp
push ecx
mov ecx, esp
mov dword [esp + 0xa8], esp
push 6
push 0x60df70
call fcn.00558100
push esi
call fcn.00560f40
sub esp, 8
mov byte [esp + 0x20c], 0x1d
mov esi, esp
mov dword [esp + 0xb4], esp
push ecx
mov ecx, esp
mov dword [esp + 0xb8], esp
push 6
push 0x60df70
call fcn.00558100
push esi
call fcn.00560f40
add esp, 8
lea ecx, [esp + 0xf0]
mov byte [esp + 0x20c], 0xf
push ecx
mov ecx, 0x619a58
call fcn.00543d00
mov dx, word [eax]
mov ecx, dword [0x5e5150]
lea esi, [eax + 4]
mov word [esp + 0x3c], dx
mov byte [esp + 0x1ac], 0x1e
mov eax, dword [esi + 8]
mov ebp, eax
cmp ecx, ebp
jae 0x509b0f
mov ebp, ecx
lea edx, [esp + 0x40]
cmp edx, esi
jne 0x509b34
push ecx
push ebp
lea ecx, [esp + 0x48]
call fcn.00421610
xor ebx, ebx
lea ecx, [esp + 0x40]
push ebx
push ebx
call fcn.00421610
jmp 0x509bbf
xor ebx, ebx
cmp ebp, ebx
jbe 0x509b83
cmp ebp, eax
jne 0x509b83
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x509b4a
mov eax, 0x5e514c
cmp byte [eax - 1], 0xfe
jae 0x509b83
push 1
lea ecx, [esp + 0x44]
call fcn.00401850
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x509b67
mov eax, 0x5e514c
mov dword [esp + 0x44], eax
mov ecx, dword [esi + 8]
mov dword [esp + 0x48], ecx
mov esi, dword [esi + 0xc]
mov dword [esp + 0x4c], esi
mov cl, byte [eax - 1]
inc cl
mov byte [eax - 1], cl
jmp 0x509bbf
push 1
push ebp
lea ecx, [esp + 0x48]
call fcn.004018c0
test al, al
je 0x509bbf
mov esi, dword [esi + 4]
cmp esi, ebx
jne 0x509b9f
mov esi, 0x5e514c
mov edi, dword [esp + 0x44]
mov ecx, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x48], ebp
mov byte [ecx + ebp], 0
mov eax, dword [esp + 0x98]
mov byte [esp + 0x1ac], 0xf
cmp eax, ebx
je 0x509bef
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x509be6
cmp al, 0xff
je 0x509be6
dec al
mov byte [ecx], al
jmp 0x509bef
push ecx
call fcn.005bc500
add esp, 4
lea ecx, [esp + 0x3c]
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
call fcn.00551f50
cmp ax, 2
jne 0x509c81
mov eax, dword [esp + 0x5c]
cmp eax, ebx
je 0x509c38
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x509c2f
cmp al, 0xff
je 0x509c2f
dec al
mov byte [ecx], al
jmp 0x509c38
push ecx
call fcn.005bc500
add esp, 4
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x5c], ebx
cmp ecx, ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov byte [esp + 0x1ac], 1
je 0x509c70
mov al, byte [ecx - 1]
test al, al
je 0x509c66
cmp al, 0xff
je 0x509c66
dec al
mov byte [ecx - 1], al
jmp 0x509c70
dec ecx
push ecx
call fcn.005bc500
add esp, 4
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
jmp 0x5095e7
lea edx, [esp + 0x80]
lea ecx, [esp + 0x3c]
push edx
call fcn.00542fb0
mov edi, dword [eax + 4]
cmp edi, ebx
jne 0x509c9e
mov edi, 0x5e514c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xa4]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x84]
and ecx, 3
cmp eax, ebx
rep movsb byte es:[edi], byte [esi]
je 0x509cea
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x509ce1
cmp al, 0xff
je 0x509ce1
dec al
mov byte [ecx], al
jmp 0x509cea
push ecx
call fcn.005bc500
add esp, 4
lea ecx, [esp + 0xa4]
mov dword [esp + 0x84], ebx
push ecx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
call fcn.005bd3b2
add esp, 4
mov byte [esp + 0x18], al
xor ebp, ebp
push 0x32
call fcn.00401520
mov eax, dword [esp + 0x60]
add esp, 4
cmp eax, ebp
je 0x509d44
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x509d3b
cmp al, 0xff
je 0x509d3b
dec al
mov byte [ecx], al
jmp 0x509d44
push ecx
call fcn.005bc500
add esp, 4
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x5c], ebp
cmp ecx, ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebp
mov byte [esp + 0x1ac], 1
je 0x509d7c
mov al, byte [ecx - 1]
test al, al
je 0x509d72
cmp al, 0xff
je 0x509d72
dec al
mov byte [ecx - 1], al
jmp 0x509d7c
dec ecx
push ecx
call fcn.005bc500
add esp, 4
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], ebp
jmp 0x5095e9
push ebp
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x60], esp
push 6
push 0x6094cc
call fcn.00558100
push ecx
mov byte [esp + 0x1bc], 0xc
mov ecx, esp
mov dword [esp + 0x24], esp
push 6
push 0x609440
jmp 0x509de7
push ebp
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x60], esp
push 6
push 0x6094cc
call fcn.00558100
push ecx
mov byte [esp + 0x1bc], 0xd
mov ecx, esp
mov dword [esp + 0x24], esp
push 6
push 0x60e030
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0x1bc], 1
call fcn.00543af0
jmp 0x509e62
mov eax, dword [esp + 0x5c]
cmp eax, ebp
je 0x509e25
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x509e1c
cmp al, 0xff
je 0x509e1c
dec al
mov byte [ecx], al
jmp 0x509e25
push ecx
call fcn.005bc500
add esp, 4
mov eax, dword [esp + 0x70]
mov dword [esp + 0x5c], ebp
cmp eax, ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebp
je 0x509e56
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x509e4d
cmp al, 0xff
je 0x509e4d
dec al
mov byte [ecx], al
jmp 0x509e56
push ecx
call fcn.005bc500
add esp, 4
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], ebp
mov eax, dword [esp + 0x44]
cmp eax, ebp
je 0x509e87
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x509e7e
cmp al, 0xff
je 0x509e7e
dec al
mov byte [ecx], al
jmp 0x509e87
push ecx
call fcn.005bc500
add esp, 4
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
cmp edi, eax
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x1ac], 0xffffffff
mov ebx, eax
mov dword [esp + 0x30], edi
je 0x509f4a
mov ebp, 0x20
mov eax, dword [edi + 0x10]
lea esi, [edi + 0xc]
test eax, eax
mov dword [esp + 0x1ac], ebp
je 0x509f09
push eax
mov ecx, esi
call fcn.0044c9c0
cmp byte [eax], 0
je 0x509ef6
mov edx, dword [esi + 4]
mov ecx, esi
push edx
call fcn.0044c9c0
cmp byte [eax], 0xff
je 0x509ef6
mov eax, dword [esi + 4]
mov ecx, esi
push eax
call fcn.0044c9c0
dec byte [eax]
jmp 0x509f09
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
add ecx, 2
dec edx
push ecx
push edx
mov ecx, esi
call fcn.005107f0
xor eax, eax
lea ecx, [edi + 8]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov byte [esp + 0x1ac], 0x1f
call fcn.005581a0
lea ecx, [edi + 4]
mov dword [esp + 0x1ac], 0xffffffff
call fcn.005581a0
add edi, 0x1c
cmp edi, ebx
mov dword [esp + 0x30], edi
jne 0x509eb9
mov edi, dword [esp + 0x20]
push edi
call fcn.005bc500
add esp, 4
mov ax, 1
mov ecx, dword [esp + 0x1a4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1a0
ret