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

Disassembly:
push 0xffffffffffffffff
push 0x5dacf7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2e0
push ebx
push ebp
mov dword [esp + 0x64], ecx
push esi
push edi
lea ecx, [esp + 0x48]
call fcn.00558060
xor esi, esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x2f8], esi
call fcn.00558060
mov al, byte [esp + 0x1b]
sub esp, 0x10
mov ebp, esp
mov edi, 0x619c18
or ecx, 0xffffffff
mov dword [esp + 0x60], esp
mov byte [ebp], al
xor eax, eax
mov dword [ebp + 4], esi
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], esi
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x30c], 1
mov ebx, ecx
mov ecx, ebp
push ebx
call fcn.004018c0
test al, al
je 0x5015a0
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
mov esi, 0x619c18
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.004018a0
xor esi, esi
push esi
lea ecx, [esp + 0x30]
call fcn.00542e70
lea ecx, [esp + 0x38]
mov byte [esp + 0x2f8], 2
call fcn.00558060
lea ecx, [esp + 0x30]
mov byte [esp + 0x2f8], 3
call fcn.00558060
mov ecx, dword [esp + 0x6c]
push 1
mov byte [esp + 0x2fc], 4
mov byte [ecx + 0x40], 0
call fcn.00500110
cmp ax, si
jge 0x501612
push esi
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x78], esp
push 6
push 0x6094cc
call fcn.00558100
push ecx
mov byte [esp + 0x308], 5
mov ecx, esp
mov dword [esp + 0x60], esp
jmp 0x502e06
jne 0x501645
push esi
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x78], esp
push 6
push 0x609448
call fcn.00558100
push ecx
mov byte [esp + 0x308], 6
mov ecx, esp
mov dword [esp + 0x60], esp
push 6
push 0x60e030
jmp 0x502e0d
push 0xff
lea eax, [esp + 0xf4]
push 0x609488
push eax
call fcn.005bcf3d
push ecx
mov cl, byte [esp + 0x2b]
mov ebp, esp
xor esi, esi
lea edi, [esp + 0x100]
xor eax, eax
mov byte [ebp], cl
or ecx, 0xffffffff
mov dword [ebp + 4], esi
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], esi
mov dword [esp + 0x60], esp
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebx, ecx
mov ecx, ebp
push ebx
call fcn.004018c0
test al, al
je 0x5016ba
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x100]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.004018a0
xor esi, esi
sub esp, 0x10
lea eax, [esp + 0x3b]
mov ecx, esp
mov dword [esp + 0x84], esp
push eax
push 0x60af04
mov byte [esp + 0x320], 7
call fcn.00404ee0
sub esp, 0x10
lea edx, [esp + 0x92]
mov ecx, esp
mov dword [esp + 0x8c], esp
push edx
push 0x60cf40
mov byte [esp + 0x330], 8
call fcn.00404ee0
sub esp, 0x10
lea eax, [esp + 0x7f]
mov ecx, esp
mov dword [esp + 0x80], esp
push eax
push 0x619c18
mov byte [esp + 0x340], 9
call fcn.00404ee0
sub esp, 0x10
mov byte [esp + 0x348], 0xa
mov edi, esp
mov dword [esp + 0x9c], esp
push ecx
mov ecx, esp
mov dword [esp + 0x98], esp
push 6
push 0x60df70
call fcn.00558100
push edi
call fcn.00560f40
sub esp, 8
mov byte [esp + 0x358], 0xb
mov edi, esp
mov dword [esp + 0xa4], esp
push ecx
mov ecx, esp
mov dword [esp + 0xa8], esp
push 6
push 0x60df70
call fcn.00558100
push edi
call fcn.00560f40
add esp, 8
lea ecx, [esp + 0xf0]
mov byte [esp + 0x358], 4
push ecx
mov ecx, 0x619a58
call fcn.00543d00
mov ecx, dword [0x5e5150]
mov dx, word [eax]
push ecx
add eax, 4
push esi
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x304], 0xc
mov word [esp + 0x28], dx
call fcn.004120f0
mov eax, dword [esp + 0x98]
mov byte [esp + 0x2f8], 4
cmp eax, esi
je 0x5017f8
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x5017ef
cmp al, 0xff
je 0x5017ef
dec al
mov byte [ecx], al
jmp 0x5017f8
push ecx
call fcn.005bc500
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x98], esi
mov dword [esp + 0x9c], esi
mov dword [esp + 0xa0], esi
call fcn.00551f50
cmp ax, 2
je 0x502e24
lea edx, [esp + 0x80]
lea ecx, [esp + 0x1c]
push edx
call fcn.00542fb0
mov edi, dword [eax + 4]
cmp edi, esi
jne 0x50183d
mov edi, 0x5e514c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xf0]
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
rep movsb byte es:[edi], byte [esi]
xor esi, esi
cmp eax, esi
je 0x50188b
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x501882
cmp al, 0xff
je 0x501882
dec al
mov byte [ecx], al
jmp 0x50188b
push ecx
call fcn.005bc500
add esp, 4
lea ecx, [esp + 0xf0]
mov dword [esp + 0x84], esi
push ecx
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], esi
call fcn.005bd3b2
add esp, 4
cmp al, 0xff
mov byte [esp + 0x54], al
jb 0x501900
push esi
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x50], esp
push 6
push 0x6094cc
call fcn.00558100
push ecx
mov byte [esp + 0x308], 0xd
mov ecx, esp
mov dword [esp + 0x5c], esp
push 6
push 0x60dfd0
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0x308], 4
call fcn.00543af0
jmp 0x501645
mov eax, 1
mov dword [esp + 0x40], eax
mov dword [esp + 0x64], eax
xor ebx, ebx
cmp word [esp + 0x40], bx
jne 0x501d8b
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push 6
push 0x60dfc8
call fcn.00558100
mov ecx, dword [0x619a64]
call fcn.00548370
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push 6
push 0x60dfc0
call fcn.00558100
mov ecx, dword [0x619a64]
call fcn.005484f0
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push 6
push 0x60df90
call fcn.00558100
mov ecx, dword [0x619a64]
call fcn.005484f0
mov edx, dword [esp + 0x54]
lea eax, [esp + 0xf0]
and edx, 0xff
push edx
push 0x609488
push eax
call fcn.005bcf3d
add esp, 8
mov ecx, esp
mov dword [esp + 0x48], esp
push 6
push 0x60dc58
call fcn.00558100
sub esp, 0x10
lea edx, [esp + 0x53]
mov ecx, esp
mov dword [esp + 0x60], esp
lea eax, [esp + 0x104]
push edx
push eax
mov byte [esp + 0x314], 0xe
call fcn.00404ee0
push ecx
mov byte [esp + 0x310], 0xf
mov ecx, esp
mov dword [esp + 0x88], esp
push 6
push 0x60df58
call fcn.00558100
mov ecx, dword [0x619a64]
mov byte [esp + 0x310], 4
call fcn.00548740
mov ecx, dword [0x619a64]
call fcn.00548950
push 0xa
mov esi, eax
call fcn.00401520
movsx eax, si
add esp, 4
sub eax, ebx
je 0x501a26
dec eax
je 0x502b2b
jmp 0x50190d
push 0xff
lea ecx, [esp + 0xf4]
push 0x609488
push ecx
call fcn.005bcf3d
mov dl, byte [esp + 0x4b]
push ecx
mov ebp, esp
xor eax, eax
lea edi, [esp + 0x100]
or ecx, 0xffffffff
mov byte [ebp], dl
mov dword [ebp + 4], eax
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x80], esp
mov ebx, ecx
push 1
push ebx
mov ecx, ebp
call fcn.004018c0
test al, al
je 0x501a9d
mov edi, dword [ebp + 4]
mov ecx, ebx
mov eax, ecx
lea esi, [esp + 0x100]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
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 edx, [esp + 0x82]
mov ecx, esp
mov dword [esp + 0x64], esp
push edx
push 0x60af04
mov byte [esp + 0x320], 0x10
call fcn.00404ee0
sub esp, 0x10
lea eax, [esp + 0xae]
mov ecx, esp
mov dword [esp + 0x7c], esp
push eax
push 0x60cf40
mov byte [esp + 0x330], 0x11
call fcn.00404ee0
sub esp, 0x10
lea edx, [esp + 0xb7]
mov ecx, esp
mov dword [esp + 0xa8], esp
push edx
push 0x619c18
mov byte [esp + 0x340], 0x12
call fcn.00404ee0
sub esp, 0x10
mov byte [esp + 0x348], 0x13
mov esi, esp
mov dword [esp + 0x84], esp
push ecx
mov ecx, esp
mov dword [esp + 0x64], esp
push 6
push 0x60df70
call fcn.00558100
push esi
call fcn.00560f40
sub esp, 8
mov byte [esp + 0x358], 0x14
mov esi, esp
mov dword [esp + 0x70], esp
push ecx
mov ecx, esp
mov dword [esp + 0x74], esp
push 6
push 0x60df70
call fcn.00558100
push esi
call fcn.00560f40
add esp, 8
lea eax, [esp + 0x13c]
mov ecx, 0x619a58
mov byte [esp + 0x358], 4
push eax
call fcn.00543d00
mov cx, word [eax]
lea esi, [eax + 4]
mov word [esp + 0x1c], cx
mov ecx, dword [0x5e5150]
mov eax, dword [esi + 8]
mov byte [esp + 0x2f8], 0x15
mov ebx, eax
cmp ecx, ebx
jae 0x501ba1
mov ebx, ecx
lea edx, [esp + 0x20]
cmp edx, esi
jne 0x501bc6
push ecx
push ebx
lea ecx, [esp + 0x28]
call fcn.00421610
xor ebp, ebp
lea ecx, [esp + 0x20]
push ebp
push ebp
call fcn.00421610
jmp 0x501c4f
xor ebp, ebp
cmp ebx, ebp
jbe 0x501c15
cmp ebx, eax
jne 0x501c15
mov eax, dword [esi + 4]
cmp eax, ebp
jne 0x501bdc
mov eax, 0x5e514c
cmp byte [eax - 1], 0xfe
jae 0x501c15
push 1
lea ecx, [esp + 0x24]
call fcn.00401850
mov eax, dword [esi + 4]
cmp eax, ebp
jne 0x501bf9
mov eax, 0x5e514c
mov dword [esp + 0x24], eax
mov ecx, dword [esi + 8]
mov dword [esp + 0x28], ecx
mov esi, dword [esi + 0xc]
mov dword [esp + 0x2c], esi
mov cl, byte [eax - 1]
inc cl
mov byte [eax - 1], cl
jmp 0x501c4f
push 1
push ebx
lea ecx, [esp + 0x28]
call fcn.004018c0
test al, al
je 0x501c4f
mov esi, dword [esi + 4]
cmp esi, ebp
jne 0x501c31
mov esi, 0x5e514c
mov edi, dword [esp + 0x24]
mov ecx, ebx
mov eax, ecx
push ebx
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 + 0x24]
call fcn.004018a0
mov eax, dword [esp + 0xe4]
mov byte [esp + 0x2f8], 4
cmp eax, ebp
je 0x501c7f
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x501c76
cmp al, 0xff
je 0x501c76
dec al
mov byte [ecx], al
jmp 0x501c7f
push ecx
call fcn.005bc500
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0xe4], ebp
mov dword [esp + 0xe8], ebp
mov dword [esp + 0xec], ebp
call fcn.00551f50
cmp ax, 2
je 0x50190d
lea ecx, [esp + 0x80]
push ecx
lea ecx, [esp + 0x20]
call fcn.00542fb0
mov edi, dword [eax + 4]
xor ebx, ebx
cmp edi, ebx
jne 0x501cc6
mov edi, 0x5e514c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xf0]
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 0x501d12
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x501d09
cmp al, 0xff
je 0x501d09
dec al
mov byte [ecx], al
jmp 0x501d12
push ecx
call fcn.005bc500
add esp, 4
lea ecx, [esp + 0xf0]
mov dword [esp + 0x84], ebx
push ecx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
call fcn.005bd3b2
add esp, 4
cmp al, 0xff
mov byte [esp + 0x54], al
jb 0x501900
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x6094cc
call fcn.00558100
push ecx
mov byte [esp + 0x308], 0x16
mov ecx, esp
mov dword [esp + 0x44], esp
push 6
push 0x60dfd0
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0x308], 4
call fcn.00543af0
jmp 0x501a26
mov ebp, dword [esp + 0x6c]
cmp byte [ebp + 0x40], 3
jne 0x501eaa
lea ecx, [esp + 0x5c]
mov byte [ebp + 0x40], 0
call fcn.00558060
lea ecx, [esp + 0x50]
mov byte [esp + 0x2f8], 0x17
call fcn.00558060
push 4
push 0x60e150
lea ecx, [esp + 0x64]
mov byte [esp + 0x300], 0x18
call fcn.00558600
xor edx, edx
lea ecx, [esp + 0x5c]
mov dl, byte [ebp + 0x3d]
push edx
push 1
call fcn.005584a0
mov al, byte [ebp + 0x3c]
lea ecx, [esp + 0x5c]
push eax
push 2
call fcn.005584a0
lea ecx, [esp + 0x50]
lea edx, [esp + 0x5c]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.00558070
mov ecx, ebp
call fcn.004fe5a0
lea ecx, [esp + 0x50]
call fcn.00558520
test ax, ax
jg 0x501e88
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x6094cc
call fcn.00558100
push ecx
mov byte [esp + 0x308], 0x19
mov ecx, esp
mov dword [esp + 0x44], esp
push 6
push 0x609440
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0x308], 0x18
call fcn.00543af0
lea ecx, [esp + 0x50]
mov dword [esp + 0x40], ebx
mov byte [esp + 0x2f8], 0x17
call fcn.005581a0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x2f8], 4
call fcn.005581a0
jmp 0x50190d
lea ecx, [esp + 0x50]
mov byte [esp + 0x2f8], 0x17
call fcn.005581a0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x2f8], 4
call fcn.005581a0
cmp word [esp + 0x64], bx
je 0x501ee1
lea eax, [esp + 0x14]
mov ecx, ebp
push eax
push 0x60e184
mov dword [esp + 0x6c], ebx
call fcn.004fff70
test ax, ax
jle 0x502b7c
push 0xa
mov dword [esp + 0x44], 1
call fcn.00401520
add esp, 4
mov cl, byte [esp + 0x54]
lea edx, [esp + 0x14]
mov byte [0x60e192], cl
push edx
push 0x60e18c
mov ecx, ebp
call fcn.004fff70
cmp ax, bx
jge 0x501f4d
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x6094cc
call fcn.00558100
push ecx
mov byte [esp + 0x308], 0x1b
mov ecx, esp
mov dword [esp + 0x44], esp
push 6
push 0x609440
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0x308], 4
call fcn.00543af0
mov dword [esp + 0x40], ebx
jmp 0x50190d
jne 0x501f7d
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x6094cc
call fcn.00558100
push ecx
mov byte [esp + 0x308], 0x1c
mov ecx, esp
mov dword [esp + 0x44], esp
push 6
push 0x60df68
jmp 0x501f2d
mov al, byte [ebp + 0x40]
push 6
inc al
lea ecx, [esp + 0x18]
mov byte [ebp + 0x40], al
call fcn.00558380
cmp al, 6
je 0x501fa7
push 6
lea ecx, [esp + 0x18]
call fcn.00558380
cmp al, 7
jne 0x502c0c
lea ecx, [esp + 0x14]
call fcn.00558520
cmp ax, 0xa
jl 0x501fd5
lea ecx, [esp + 0x14]
call fcn.00558520
movsx ecx, ax
sub ecx, 7
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
mov ebx, edx
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 6
push 0x60dfc8
call fcn.00558100
mov ecx, dword [0x619a64]
call fcn.00548370
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 6
push 0x60dfc0
call fcn.00558100
mov ecx, dword [0x619a64]
call fcn.005484f0
movsx edi, bx
xor esi, esi
mov byte [esp + 0x1b], 0
test edi, edi
jle 0x50205f
lea ecx, [esi + esi*2 + 7]
push ecx
lea ecx, [esp + 0x18]
call fcn.00558380
cmp al, 0x25
je 0x50203a
inc esi
cmp esi, edi
jl 0x502021
jmp 0x50205f
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 6
push 0x60e418
mov byte [esp + 0x2b], 1
call fcn.00558100
mov ecx, dword [0x619a64]
call fcn.005484f0
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 6
push 0x60df90
call fcn.00558100
mov ecx, dword [0x619a64]
call fcn.005484f0
mov esi, dword [esp + 0x54]
lea eax, [esp + 0xf0]
mov edx, esi
and edx, 0xff
push edx
push 0x609488
push eax
call fcn.005bcf3d
add esp, 8
mov ecx, esp
mov dword [esp + 0x14], esp
push 6
push 0x60dc58
call fcn.00558100
sub esp, 0x10
lea edx, [esp + 0x8d]
mov ecx, esp
mov dword [esp + 0x48], esp
lea eax, [esp + 0x104]
push edx
push eax
mov byte [esp + 0x314], 0x1e
call fcn.00404ee0
push ecx
mov byte [esp + 0x310], 0x1f
mov ecx, esp
mov dword [esp + 0x80], esp
push 6
push 0x60df58
call fcn.00558100
mov ecx, dword [0x619a64]
mov byte [esp + 0x310], 4
call fcn.00548740
xor ebx, ebx
test edi, edi
jle 0x5022a4
lea ecx, [esp + 0x30]
lea edx, [esp + 0x1f0]
push ecx
lea eax, [ebx + ebx*2 + 9]
push edx
push eax
lea ecx, [esp + 0x20]
call fcn.00558380
lea ecx, [ebx + ebx*2 + 8]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.00558380
lea edx, [ebx + ebx*2 + 7]
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.00558380
push eax
mov ecx, ebp
call fcn.004fc550
mov al, byte [ebp + 0x24]
test al, al
jbe 0x50221c
mov al, byte [ebp + 0x25]
test al, al
jbe 0x50221c
push 2
push 0x60df44
lea ecx, [esp + 0x40]
call fcn.00558600
mov al, byte [ebp + 0x24]
lea ecx, [esp + 0x38]
push eax
call fcn.00558500
mov cl, byte [ebp + 0x25]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00558500
push esi
lea ecx, [esp + 0x3c]
call fcn.00558500
mov dl, bl
lea ecx, [esp + 0x38]
inc dl
push edx
call fcn.00558500
push ecx
lea eax, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.00558070
lea ecx, [esp + 0x34]
call fcn.00558390
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.00558070
sub esp, 0x10
lea eax, [esp + 0x90]
mov ecx, esp
mov dword [esp + 0x48], esp
lea edx, [esp + 0x204]
push eax
push edx
mov byte [esp + 0x314], 0x20
call fcn.00404ee0
push ecx
lea eax, [esp + 0x50]
mov ecx, esp
mov dword [esp + 0x80], esp
push eax
mov byte [esp + 0x314], 0x21
call fcn.00558070
jmp 0x502288
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.00558070
lea ecx, [esp + 0x34]
call fcn.00558390
push ecx
lea eax, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.00558070
sub esp, 0x10
lea edx, [esp + 0x6f]
mov ecx, esp
mov dword [esp + 0x48], esp
lea eax, [esp + 0x204]
push edx
push eax
mov byte [esp + 0x314], 0x22
call fcn.00404ee0
push ecx
mov byte [esp + 0x310], 0x23
mov ecx, esp
mov dword [esp + 0x80], esp
push 6
push 0x60df50
call fcn.00558100
mov ecx, dword [0x619a64]
mov byte [esp + 0x310], 4
call fcn.00548740
inc ebx
cmp ebx, edi
jl 0x502114
mov ecx, dword [0x619a64]
call fcn.00548950
push 0xa
mov edi, eax
call fcn.00401520
mov al, byte [esp + 0x1f]
add esp, 4
test al, al
movsx eax, di
je 0x5026c7
xor esi, esi
sub eax, esi
je 0x502308
dec eax
je 0x5022df
dec eax
je 0x502b0a
jmp 0x50190d
mov cl, byte [esp + 0x54]
lea edx, [esp + 0x14]
mov byte [0x60e1a2], cl
push edx
push 0x60e19c
mov ecx, ebp
call fcn.004fff70
test ax, ax
jle 0x502d4f
jmp 0x50190d
push 0xff
lea eax, [esp + 0xf4]
push 0x609488
push eax
call fcn.005bcf3d
push ecx
mov cl, byte [esp + 0x6b]
mov ebp, esp
lea edi, [esp + 0x100]
xor eax, eax
mov dword [esp + 0x20], esp
mov byte [ebp], cl
or ecx, 0xffffffff
mov dword [ebp + 4], esi
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], esi
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 0x50237d
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x100]
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 [ebp + 8], ebx
mov ebp, dword [ebp + 4]
add ebp, ebx
mov byte [ebp], 0
sub esp, 0x10
lea eax, [esp + 0x9f]
mov ecx, esp
mov dword [esp + 0x54], esp
push eax
push 0x60af04
mov byte [esp + 0x320], 0x24
call fcn.00404ee0
sub esp, 0x10
lea edx, [esp + 0xaa]
mov ecx, esp
mov dword [esp + 0x98], esp
push edx
push 0x60cf40
mov byte [esp + 0x330], 0x25
call fcn.00404ee0
sub esp, 0x10
lea eax, [esp + 0xa3]
mov ecx, esp
mov dword [esp + 0xb0], esp
push eax
push 0x619c18
mov byte [esp + 0x340], 0x26
call fcn.00404ee0
sub esp, 0x10
mov byte [esp + 0x348], 0x27
mov esi, esp
mov dword [esp + 0x94], esp
push ecx
mov ecx, esp
mov dword [esp + 0xa0], esp
push 6
push 0x60df70
call fcn.00558100
push esi
call fcn.00560f40
sub esp, 8
mov byte [esp + 0x358], 0x28
mov esi, esp
mov dword [esp + 0xac], esp
push ecx
mov ecx, esp
mov dword [esp + 0xb0], esp
push 6
push 0x60df70
call fcn.00558100
push esi
call fcn.00560f40
add esp, 8
lea ecx, [esp + 0x114]
mov byte [esp + 0x358], 4
push ecx
mov ecx, 0x619a58
call fcn.00543d00
mov dx, word [eax]
mov edi, dword [0x5e5150]
lea esi, [eax + 4]
mov word [esp + 0x1c], dx
mov byte [esp + 0x2f8], 0x29
mov eax, dword [esi + 8]
mov ebp, eax
cmp edi, ebp
jae 0x50248d
mov ebp, edi
lea ecx, [esp + 0x20]
cmp ecx, esi
jne 0x502500
cmp dword [esp + 0x28], ebp
jae 0x5024a0
call fcn.005bc820
lea ecx, [esp + 0x20]
call fcn.00412310
mov eax, dword [esp + 0x28]
sub eax, ebp
cmp eax, edi
jae 0x5024b5
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jbe 0x5024f0
mov edx, dword [esp + 0x24]
sub eax, edi
add ebp, edx
push eax
lea ecx, [edi + ebp]
push ecx
push ebp
call fcn.005bcf90
mov esi, dword [esp + 0x34]
add esp, 0xc
sub esi, edi
lea ecx, [esp + 0x20]
push ebx
push esi
call fcn.004018c0
test al, al
je 0x5024f0
push esi
lea ecx, [esp + 0x24]
call fcn.004018a0
push ebx
push ebx
lea ecx, [esp + 0x28]
call fcn.00421610
jmp 0x502589
xor ebx, ebx
cmp ebp, ebx
jbe 0x50254f
cmp ebp, eax
jne 0x50254f
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x502516
mov eax, 0x5e514c
cmp byte [eax - 1], 0xfe
jae 0x50254f
push 1
lea ecx, [esp + 0x24]
call fcn.00401850
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x502533
mov eax, 0x5e514c
mov dword [esp + 0x24], eax
mov ecx, dword [esi + 8]
mov dword [esp + 0x28], ecx
mov esi, dword [esi + 0xc]
mov dword [esp + 0x2c], esi
mov cl, byte [eax - 1]
inc cl
mov byte [eax - 1], cl
jmp 0x502589
push 1
push ebp
lea ecx, [esp + 0x28]
call fcn.004018c0
test al, al
je 0x502589
mov esi, dword [esi + 4]
cmp esi, ebx
jne 0x50256b
mov esi, 0x5e514c
mov edi, dword [esp + 0x24]
mov ecx, ebp
mov eax, ecx
push ebp
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 + 0x24]
call fcn.004018a0
mov eax, dword [esp + 0xbc]
mov byte [esp + 0x2f8], 4
cmp eax, ebx
je 0x5025b9
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x5025b0
cmp al, 0xff
je 0x5025b0
dec al
mov byte [ecx], al
jmp 0x5025b9
push ecx
call fcn.005bc500
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xc4], ebx
call fcn.00551f50
cmp ax, 2
je 0x50190d
lea ecx, [esp + 0xa4]
push ecx
lea ecx, [esp + 0x20]
call fcn.00542fb0
mov edi, dword [eax + 4]
xor ebx, ebx
cmp edi, ebx
jne 0x502600
mov edi, 0x5e514c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xf0]
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 + 0xa8]
and ecx, 3
cmp eax, ebx
rep movsb byte es:[edi], byte [esi]
je 0x50264c
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x502643
cmp al, 0xff
je 0x502643
dec al
mov byte [ecx], al
jmp 0x50264c
push ecx
call fcn.005bc500
add esp, 4
lea ecx, [esp + 0xf0]
mov dword [esp + 0xa8], ebx
push ecx
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], ebx
call fcn.005bd3b2
add esp, 4
cmp al, 0xff
mov byte [esp + 0x54], al
jb 0x501900
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x6094cc
call fcn.00558100
push ecx
mov byte [esp + 0x308], 0x2a
mov ecx, esp
mov dword [esp + 0x44], esp
push 6
push 0x60dfd0
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0x308], 4
call fcn.00543af0
xor esi, esi
jmp 0x502308
sub eax, 0
je 0x5026d8
dec eax
je 0x502b58
jmp 0x50190d
push 0xff
lea edx, [esp + 0xf4]
push 0x609488
push edx
call fcn.005bcf3d
mov al, byte [esp + 0x6f]
push ecx
mov ebp, esp
xor esi, esi
lea edi, [esp + 0x100]
or ecx, 0xffffffff
mov byte [ebp], al
xor eax, eax
mov dword [ebp + 4], esi
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], esi
mov dword [esp + 0x20], esp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
cmp ebx, 0xfffffffd
jbe 0x502725
call fcn.005bc520
mov ecx, dword [ebp + 4]
cmp ecx, esi
je 0x50274a
mov al, byte [ecx - 1]
test al, al
je 0x50274a
cmp al, 0xff
je 0x50274a
cmp ebx, esi
jne 0x50276e
dec al
push esi
mov byte [ecx - 1], al
mov ecx, ebp
call fcn.00401850
jmp 0x50279c
cmp ebx, esi
jne 0x502759
push 1
mov ecx, ebp
call fcn.00401850
jmp 0x50279c
mov eax, dword [ebp + 0xc]
cmp eax, 0x1f
ja 0x502765
cmp eax, ebx
jae 0x502776
push 1
mov ecx, ebp
call fcn.00401850
push ebx
mov ecx, ebp
call fcn.004019e0
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x100]
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 [ebp + 8], ebx
mov ebp, dword [ebp + 4]
add ebp, ebx
mov byte [ebp], 0
sub esp, 0x10
lea eax, [esp + 0x9b]
mov ecx, esp
mov dword [esp + 0x54], esp
push eax
push 0x60af04
mov byte [esp + 0x320], 0x2d
call fcn.00404ee0
sub esp, 0x10
lea edx, [esp + 0xad]
mov ecx, esp
mov dword [esp + 0x98], esp
push edx
push 0x60cf40
mov byte [esp + 0x330], 0x2e
call fcn.00404ee0
sub esp, 0x10
lea eax, [esp + 0xb8]
mov ecx, esp
mov dword [esp + 0xb0], esp
push eax
push 0x619c18
mov byte [esp + 0x340], 0x2f
call fcn.00404ee0
sub esp, 0x10
mov byte [esp + 0x348], 0x30
mov esi, esp
mov dword [esp + 0x94], esp
push ecx
mov ecx, esp
mov dword [esp + 0xa0], esp
push 6
push 0x60df70
call fcn.00558100
push esi
call fcn.00560f40
sub esp, 8
mov byte [esp + 0x358], 0x31
mov esi, esp
mov dword [esp + 0xac], esp
push ecx
mov ecx, esp
mov dword [esp + 0xb0], esp
push 6
push 0x60df70
call fcn.00558100
push esi
call fcn.00560f40
add esp, 8
lea ecx, [esp + 0x128]
mov byte [esp + 0x358], 4
push ecx
mov ecx, 0x619a58
call fcn.00543d00
mov dx, word [eax]
mov edi, dword [0x5e5150]
lea esi, [eax + 4]
mov word [esp + 0x1c], dx
mov byte [esp + 0x2f8], 0x32
mov eax, dword [esi + 8]
mov ebp, eax
cmp edi, ebp
jae 0x5028ac
mov ebp, edi
lea ecx, [esp + 0x20]
cmp ecx, esi
jne 0x50291d
cmp dword [esp + 0x28], ebp
jae 0x5028bf
call fcn.005bc820
lea ecx, [esp + 0x20]
call fcn.00412310
mov eax, dword [esp + 0x28]
sub eax, ebp
cmp eax, edi
jae 0x5028d4
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jbe 0x50290f
mov edx, dword [esp + 0x24]
sub eax, edi
add ebp, edx
push eax
lea ecx, [edi + ebp]
push ecx
push ebp
call fcn.005bcf90
mov esi, dword [esp + 0x34]
add esp, 0xc
sub esi, edi
lea ecx, [esp + 0x20]
push ebx
push esi
call fcn.004018c0
test al, al
je 0x50290f
push esi
lea ecx, [esp + 0x24]
call fcn.004018a0
lea ecx, [esp + 0x20]
call fcn.00412310
jmp 0x5029ce
xor ebx, ebx
cmp ebp, ebx
jbe 0x502992
cmp ebp, eax
jne 0x502992
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x502933
mov eax, 0x5e514c
cmp byte [eax - 1], 0xfe
jae 0x502992
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x50295e
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x502955
cmp al, 0xff
je 0x502955
dec al
mov byte [ecx], al
jmp 0x50295e
push ecx
call fcn.005bc500
add esp, 4
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x502976
mov eax, 0x5e514c
mov dword [esp + 0x24], eax
mov ecx, dword [esi + 8]
mov dword [esp + 0x28], ecx
mov esi, dword [esi + 0xc]
mov dword [esp + 0x2c], esi
mov cl, byte [eax - 1]
inc cl
mov byte [eax - 1], cl
jmp 0x5029ce
push 1
push ebp
lea ecx, [esp + 0x28]
call fcn.004018c0
test al, al
je 0x5029ce
mov esi, dword [esi + 4]
cmp esi, ebx
jne 0x5029ae
mov esi, 0x5e514c
mov edi, dword [esp + 0x24]
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 + 0x24]
mov dword [esp + 0x28], ebp
mov byte [ecx + ebp], 0
mov eax, dword [esp + 0xd0]
mov byte [esp + 0x2f8], 4
cmp eax, ebx
je 0x5029fe
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x5029f5
cmp al, 0xff
je 0x5029f5
dec al
mov byte [ecx], al
jmp 0x5029fe
push ecx
call fcn.005bc500
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xd4], ebx
mov dword [esp + 0xd8], ebx
call fcn.00551f50
cmp ax, 2
je 0x50190d
lea edx, [esp + 0x90]
lea ecx, [esp + 0x1c]
push edx
call fcn.00542fb0
mov edi, dword [eax + 4]
xor ebx, ebx
cmp edi, ebx
jne 0x502a45
mov edi, 0x5e514c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xf0]
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 + 0x94]
and ecx, 3
cmp eax, ebx
rep movsb byte es:[edi], byte [esi]
je 0x502a91
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x502a88
cmp al, 0xff
je 0x502a88
dec al
mov byte [ecx], al
jmp 0x502a91
push ecx
call fcn.005bc500
add esp, 4
lea ecx, [esp + 0xf0]
mov dword [esp + 0x94], ebx
push ecx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
call fcn.005bd3b2
add esp, 4
cmp al, 0xff
mov byte [esp + 0x54], al
jb 0x501900
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x6094cc
call fcn.00558100
push ecx
mov byte [esp + 0x308], 0x33
mov ecx, esp
mov dword [esp + 0x44], esp
push 6
push 0x60dfd0
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0x308], 4
call fcn.00543af0
jmp 0x5026d8
cmp word [esp + 0x40], si
je 0x502b2b
lea edx, [esp + 0x14]
mov ecx, ebp
push edx
push 0x60e194
call fcn.004fff70
test ax, ax
jle 0x502cbd
lea ecx, [esp + 0x30]
mov byte [esp + 0x2f8], 3
call fcn.005581a0
lea ecx, [esp + 0x38]
mov byte [esp + 0x2f8], 2
call fcn.005581a0
mov eax, dword [esp + 0x24]
xor esi, esi
jmp 0x502e4a
cmp word [esp + 0x40], 0
je 0x502b2b
lea eax, [esp + 0x14]
mov ecx, ebp
push eax
push 0x60e194
call fcn.004fff70
test ax, ax
jle 0x502ddf
jmp 0x502b2b
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x6094cc
call fcn.00558100
push ecx
mov byte [esp + 0x308], 0x1a
mov ecx, esp
mov dword [esp + 0x44], esp
push 6
push 0x609440
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0x308], 4
call fcn.00543af0
lea ecx, [esp + 0x30]
mov byte [esp + 0x2f8], 3
call fcn.005581a0
lea ecx, [esp + 0x38]
mov byte [esp + 0x2f8], 2
call fcn.005581a0
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x502cac
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x502ca3
cmp al, 0xff
je 0x502ca3
dec al
mov byte [ecx], al
jmp 0x502cac
lea ecx, [esp + 0x14]
push ecx
push 0x60e194
mov ecx, ebp
call fcn.004fff70
test ax, ax
jg 0x502c65
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x6094cc
call fcn.00558100
push ecx
mov byte [esp + 0x308], 0x1d
mov ecx, esp
mov dword [esp + 0x44], esp
push 6
push 0x609440
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0x308], 4
call fcn.00543af0
lea ecx, [esp + 0x30]
mov byte [esp + 0x2f8], 3
call fcn.005581a0
lea ecx, [esp + 0x38]
mov byte [esp + 0x2f8], 2
call fcn.005581a0
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x502cac
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x502ca3
cmp al, 0xff
je 0x502ca3
dec al
mov byte [ecx], al
jmp 0x502cac
push ecx
call fcn.005bc500
add esp, 4
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
jmp 0x502e77
xor esi, esi
push esi
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x6094cc
call fcn.00558100
push ecx
mov byte [esp + 0x308], 0x2c
mov ecx, esp
mov dword [esp + 0x44], esp
push 6
push 0x609440
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0x308], 4
call fcn.00543af0
lea ecx, [esp + 0x30]
mov byte [esp + 0x2f8], 3
call fcn.005581a0
lea ecx, [esp + 0x38]
mov byte [esp + 0x2f8], 2
call fcn.005581a0
mov eax, dword [esp + 0x24]
cmp eax, esi
je 0x502e6b
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x502e62
cmp al, 0xff
je 0x502e62
dec al
mov byte [ecx], al
jmp 0x502e6b
push esi
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x6094cc
call fcn.00558100
push ecx
mov byte [esp + 0x308], 0x2b
mov ecx, esp
mov dword [esp + 0x44], esp
push 6
push 0x609440
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0x308], 4
call fcn.00543af0
lea ecx, [esp + 0x30]
mov byte [esp + 0x2f8], 3
call fcn.005581a0
lea ecx, [esp + 0x38]
mov byte [esp + 0x2f8], 2
call fcn.005581a0
mov eax, dword [esp + 0x24]
cmp eax, esi
je 0x502e6b
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x502e62
cmp al, 0xff
je 0x502e62
dec al
mov byte [ecx], al
jmp 0x502e6b
xor esi, esi
push esi
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x6094cc
call fcn.00558100
push ecx
mov byte [esp + 0x308], 0x34
mov ecx, esp
mov dword [esp + 0x44], esp
push 6
push 0x609440
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0x308], 4
call fcn.00543af0
lea ecx, [esp + 0x30]
mov byte [esp + 0x2f8], 3
call fcn.005581a0
lea ecx, [esp + 0x38]
mov byte [esp + 0x2f8], 2
call fcn.005581a0
mov eax, dword [esp + 0x24]
cmp eax, esi
je 0x502e6b
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x502e62
cmp al, 0xff
je 0x502e62
dec al
mov byte [ecx], al
jmp 0x502e6b
push ecx
call fcn.005bc500
add esp, 4
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
lea ecx, [esp + 0x14]
mov byte [esp + 0x2f8], 0
call fcn.005581a0
lea ecx, [esp + 0x48]
mov dword [esp + 0x2f8], 0xffffffff
call fcn.005581a0
mov ecx, dword [esp + 0x2f0]
pop edi
pop esi
pop ebp
mov ax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x2ec
ret