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

Disassembly:
push 0xffffffffffffffff
push 0x4e73de
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c8
mov al, byte [esp + 7]
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x5c], ecx
mov byte [esp + 0x44], al
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov cl, byte [esp + 0x17]
sub esp, 0x10
mov ebp, esp
mov dword [esp + 0x28], esp
push ebx
mov dword [esp + 0x1f4], ebx
mov byte [ebp], cl
mov ecx, ebp
call fcn.00414090
mov edi, 0x520010
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, ebp
push esi
mov dword [esp + 0x50], esi
call fcn.004144a0
test al, al
je 0x406d0f
mov edi, dword [ebp + 4]
mov ecx, esi
mov edx, ecx
mov esi, 0x520010
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
mov dword [ebp + 8], eax
add eax, ecx
mov byte [eax], bl
push ebx
lea ecx, [esp + 0x38]
call fcn.004ca360
mov byte [esp + 0x1e0], 1
push 0xff
lea eax, [esp + 0xdc]
push 0x50f930
push eax
call fcn.004de8d6
push ecx
mov cl, byte [esp + 0x27]
mov ebp, esp
mov dword [esp + 0x64], esp
push ebx
mov byte [ebp], cl
mov ecx, ebp
call fcn.00414090
lea edi, [esp + 0xe8]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x2c], ecx
push ecx
mov ecx, ebp
call fcn.004144a0
test al, al
je 0x406d99
mov eax, dword [esp + 0x28]
mov edi, dword [ebp + 4]
mov ecx, eax
lea esi, [esp + 0xe8]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
mov dword [ebp + 8], eax
add eax, ecx
mov byte [eax], bl
sub esp, 0x10
lea eax, [esp + 0x37]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
push 0x50f8e4
mov byte [esp + 0x208], 2
call fcn.00413bf0
sub esp, 0x10
lea edx, [esp + 0x6d]
mov ecx, esp
mov dword [esp + 0x90], esp
push edx
push 0x50f9a8
mov byte [esp + 0x218], 3
call fcn.00413bf0
sub esp, 0x10
lea eax, [esp + 0x5f]
mov ecx, esp
mov dword [esp + 0x80], esp
push eax
push 0x520010
mov byte [esp + 0x228], 4
call fcn.00413bf0
sub esp, 0x10
mov byte [esp + 0x230], 5
mov esi, esp
mov dword [esp + 0x70], esp
push ecx
mov ecx, esp
mov dword [esp + 0x64], esp
push 6
push 0x50f9a0
call fcn.004be240
push esi
call fcn.004cfca0
sub esp, 8
mov byte [esp + 0x240], 6
mov esi, esp
mov dword [esp + 0x70], esp
push ecx
mov ecx, esp
mov dword [esp + 0x74], esp
push 6
push 0x50f9a0
call fcn.004be240
push esi
call fcn.004cfca0
add esp, 8
lea ecx, [esp + 0xd8]
mov byte [esp + 0x240], 1
push ecx
mov ecx, 0x5200a8
call fcn.004cb120
mov ecx, dword [0x4f73d0]
mov dx, word [eax]
push ecx
add eax, 4
push ebx
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x1ec], 7
mov word [esp + 0x30], dx
call fcn.00413e90
mov eax, dword [esp + 0x80]
mov byte [esp + 0x1e0], 1
cmp eax, ebx
je 0x406ec5
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x406ebc
cmp al, 0xff
je 0x406ebc
dec al
mov byte [ecx], al
jmp 0x406ec5
push ecx
call fcn.004de1a0
add esp, 4
lea ecx, [esp + 0x24]
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
call fcn.004c48d0
cmp ax, 2
je 0x406fc0
lea edx, [esp + 0x68]
lea ecx, [esp + 0x24]
push edx
call fcn.004ca4a0
mov edi, dword [eax + 4]
cmp edi, ebx
jne 0x406f07
mov edi, 0x4f7480
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xd8]
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 + 0x6c]
and ecx, 3
cmp eax, ebx
rep movsb byte es:[edi], byte [esi]
je 0x406f50
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x406f47
cmp al, 0xff
je 0x406f47
dec al
mov byte [ecx], al
jmp 0x406f50
push ecx
call fcn.004de1a0
add esp, 4
lea ecx, [esp + 0xd8]
mov dword [esp + 0x6c], ebx
push ecx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
call fcn.004dea48
add esp, 4
cmp al, 0xff
mov byte [esp + 0x38], al
jb 0x4073b7
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x50f76c
call fcn.004be240
push ecx
mov byte [esp + 0x1f0], 8
mov ecx, esp
mov dword [esp + 0x30], esp
push 6
push 0x50fa14
call fcn.004be240
mov ecx, 0x5200a8
mov byte [esp + 0x1f0], 1
call fcn.004caf10
jmp 0x406d21
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x406fe5
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x406fdc
cmp al, 0xff
je 0x406fdc
dec al
mov byte [ecx], al
jmp 0x406fe5
push ecx
call fcn.004de1a0
add esp, 4
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x48]
cmp esi, eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x1e0], 0xffffffff
mov edi, eax
je 0x407eb5
mov ecx, esi
call fcn.00404da0
add esi, 0x1c
cmp esi, edi
jne 0x40700e
mov esi, dword [esp + 0x48]
push esi
jmp 0x407fa0
mov eax, 1
cmp ax, bx
jne 0x4073b7
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x20], esp
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 6
push 0x50fa0c
call fcn.004be240
push esi
call fcn.004cfca0
mov ecx, dword [0x5200b4]
add esp, 8
call fcn.004d0780
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 6
push 0x50fa04
call fcn.004be240
mov ecx, dword [0x5200b4]
call fcn.004d0980
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 6
push 0x50f9d4
call fcn.004be240
mov ecx, dword [0x5200b4]
call fcn.004d0980
mov edx, dword [esp + 0x38]
lea eax, [esp + 0xd8]
and edx, 0xff
push edx
push 0x50f930
push eax
call fcn.004de8d6
push ecx
mov cl, byte [esp + 0x2f]
mov edx, esp
lea edi, [esp + 0xe8]
xor eax, eax
mov dword [esp + 0x20], esp
mov byte [edx], cl
or ecx, 0xffffffff
mov dword [edx + 4], ebx
mov dword [edx + 8], ebx
mov dword [edx + 0xc], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0xe8]
push ecx
push eax
mov ecx, edx
call fcn.004142c0
push ecx
mov byte [esp + 0x1f4], 9
mov ecx, esp
mov dword [esp + 0x34], esp
push 6
push 0x50f988
call fcn.004be240
mov ecx, dword [0x5200b4]
mov byte [esp + 0x1f4], 1
call fcn.004d0b70
mov ecx, dword [0x5200b4]
call fcn.004d0f50
movsx eax, ax
sub eax, ebx
je 0x407142
dec eax
je 0x407ebb
jmp 0x407d5e
push 0xff
lea ecx, [esp + 0xdc]
push 0x50f930
push ecx
call fcn.004de8d6
mov al, byte [esp + 0x2b]
push ecx
mov edx, esp
lea edi, [esp + 0xe8]
or ecx, 0xffffffff
mov dword [esp + 0x20], esp
mov byte [edx], al
xor eax, eax
mov dword [edx + 4], ebx
mov dword [edx + 8], ebx
mov dword [edx + 0xc], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0xec]
push ecx
mov ecx, edx
call fcn.004142c0
sub esp, 0x10
lea edx, [esp + 0x3f]
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
push 0x50f8e4
mov byte [esp + 0x208], 0xa
call fcn.00413bf0
sub esp, 0x10
lea eax, [esp + 0x6d]
mov ecx, esp
mov dword [esp + 0x70], esp
push eax
push 0x50f9a8
mov byte [esp + 0x218], 0xb
call fcn.00413bf0
sub esp, 0x10
lea edx, [esp + 0x57]
mov ecx, esp
mov dword [esp + 0xa0], esp
push edx
push 0x520010
mov byte [esp + 0x228], 0xc
call fcn.00413bf0
sub esp, 0x10
mov byte [esp + 0x230], 0xd
mov esi, esp
mov dword [esp + 0xa4], esp
push ecx
mov ecx, esp
mov dword [esp + 0x6c], esp
push 6
push 0x50f9a0
call fcn.004be240
push esi
call fcn.004cfca0
sub esp, 8
mov byte [esp + 0x240], 0xe
mov esi, esp
mov dword [esp + 0x78], esp
push ecx
mov ecx, esp
mov dword [esp + 0x7c], esp
push 6
push 0x50f9a0
call fcn.004be240
push esi
call fcn.004cfca0
add esp, 8
lea eax, [esp + 0xfc]
mov byte [esp + 0x240], 1
push eax
mov ecx, 0x5200a8
call fcn.004cb120
mov edx, dword [0x4f73d0]
mov cx, word [eax]
push edx
add eax, 4
mov word [esp + 0x28], cx
push ebx
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x1ec], 0xf
call fcn.00413e90
mov eax, dword [esp + 0xa4]
mov byte [esp + 0x1e0], 1
cmp eax, ebx
je 0x4072bc
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4072b3
cmp al, 0xff
je 0x4072b3
dec al
mov byte [ecx], al
jmp 0x4072bc
push ecx
call fcn.004de1a0
add esp, 4
lea ecx, [esp + 0x24]
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], ebx
call fcn.004c48d0
cmp ax, 2
je 0x407d5e
lea eax, [esp + 0x68]
lea ecx, [esp + 0x24]
push eax
call fcn.004ca4a0
mov edi, dword [eax + 4]
cmp edi, ebx
jne 0x4072fe
mov edi, 0x4f7480
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xd8]
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 + 0x6c]
and ecx, 3
cmp eax, ebx
rep movsb byte es:[edi], byte [esi]
je 0x407347
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x40733e
cmp al, 0xff
je 0x40733e
dec al
mov byte [ecx], al
jmp 0x407347
push ecx
call fcn.004de1a0
add esp, 4
lea ecx, [esp + 0xd8]
mov dword [esp + 0x6c], ebx
push ecx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
call fcn.004dea48
add esp, 4
cmp al, 0xff
mov byte [esp + 0x38], al
jb 0x407d5e
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x50f76c
call fcn.004be240
push ecx
mov byte [esp + 0x1f0], 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
push 6
push 0x50fa14
call fcn.004be240
mov ecx, 0x5200a8
mov byte [esp + 0x1f0], 1
call fcn.004caf10
jmp 0x407142
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x4c]
cmp esi, edi
mov ebp, esi
je 0x4073d4
push ebx
mov ecx, esi
call fcn.004159f0
add esi, 0x1c
cmp esi, edi
jne 0x4073c5
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x5c]
lea edx, [esp + 0x44]
mov ecx, edi
push edx
push esi
push 1
mov dword [esp + 0x58], ebp
call fcn.00404e20
cmp ax, bx
jl 0x407d6d
je 0x407e16
cmp ax, 0xff
je 0x407026
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 6
push 0x50fa0c
call fcn.004be240
mov ecx, dword [0x5200b4]
call fcn.004d0800
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 6
push 0x50fa04
call fcn.004be240
mov ecx, dword [0x5200b4]
call fcn.004d0980
cmp byte [edi + 0x4c], bl
je 0x407469
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 6
push 0x50f9fc
call fcn.004be240
mov ecx, dword [0x5200b4]
call fcn.004d0980
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 6
push 0x50f9d4
call fcn.004be240
mov ecx, dword [0x5200b4]
call fcn.004d0980
and esi, 0xff
lea eax, [esp + 0xd8]
push esi
push 0x50f930
push eax
call fcn.004de8d6
add esp, 8
mov ecx, esp
mov dword [esp + 0x14], esp
push 6
push 0x50f5c0
call fcn.004be240
sub esp, 0x10
lea edx, [esp + 0x53]
mov ecx, esp
mov dword [esp + 0x34], esp
lea eax, [esp + 0xec]
push edx
push eax
mov byte [esp + 0x1fc], 0x13
call fcn.00413bf0
push ecx
mov byte [esp + 0x1f8], 0x14
mov ecx, esp
mov dword [esp + 0x58], esp
push 6
push 0x50f988
call fcn.004be240
mov ecx, dword [0x5200b4]
mov byte [esp + 0x1f8], 1
call fcn.004d0d40
xor esi, esi
xor ebp, ebp
mov edi, dword [esp + 0x48]
cmp edi, ebx
je 0x407661
mov ecx, dword [esp + 0x4c]
mov eax, 0x92492493
sub ecx, edi
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp esi, edx
jae 0x407661
mov al, byte [edi + ebp]
push esi
cmp al, 1
lea ecx, [esp + 0x48]
jne 0x4075f1
call fcn.00413da0
push ecx
add eax, 4
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.004be1b0
mov ecx, dword [esp + 0x60]
call fcn.0047e790
cmp ax, bx
je 0x407658
push ebx
push 0xffff
push esi
lea ecx, [esp + 0x50]
call fcn.00413da0
push ecx
add eax, 8
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.004be1b0
push esi
lea ecx, [esp + 0x54]
mov byte [esp + 0x1f0], 0x15
call fcn.00413da0
sub esp, 0x10
add eax, 0xc
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
call fcn.00413ad0
push esi
lea ecx, [esp + 0x64]
mov byte [esp + 0x200], 0x16
call fcn.00413da0
push ecx
add eax, 4
mov ecx, esp
mov dword [esp + 0x60], esp
push eax
call fcn.004be1b0
mov ecx, dword [0x5200b0]
mov byte [esp + 0x200], 1
call fcn.004ce370
inc esi
add ebp, 0x1c
jmp 0x40750b
call fcn.00413da0
push ecx
add eax, 8
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.004be1b0
push esi
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1e8], 0x17
call fcn.00413da0
sub esp, 0x10
add eax, 0xc
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.00413ad0
push ecx
mov byte [esp + 0x1f8], 0x18
mov ecx, esp
mov dword [esp + 0x58], esp
push 6
push 0x50f980
call fcn.004be240
mov ecx, dword [0x5200b4]
mov byte [esp + 0x1f8], 1
call fcn.004d0d40
inc esi
add ebp, 0x1c
jmp 0x40750b
mov ecx, dword [0x5200b4]
call fcn.004d0f50
mov edx, dword [esp + 0x5c]
movsx eax, ax
cmp byte [edx + 0x4c], bl
je 0x4079f5
sub eax, ebx
je 0x40769a
dec eax
je 0x40768f
dec eax
je 0x407ebb
jmp 0x407d5e
mov al, byte [esp + 0x38]
inc al
jmp 0x407d5a
push 0xff
lea eax, [esp + 0xdc]
push 0x50f930
push eax
call fcn.004de8d6
push ecx
mov cl, byte [esp + 0x4f]
mov ebp, esp
lea edi, [esp + 0xe8]
xor eax, eax
mov dword [esp + 0x20], esp
mov byte [ebp], cl
or ecx, 0xffffffff
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x2c], ecx
push ecx
mov ecx, ebp
call fcn.004144a0
test al, al
je 0x407713
mov eax, dword [esp + 0x28]
mov edi, dword [ebp + 4]
mov ecx, eax
lea esi, [esp + 0xe8]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
mov dword [ebp + 8], eax
add eax, ecx
mov byte [eax], bl
sub esp, 0x10
lea eax, [esp + 0x79]
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
push 0x50f8e4
mov byte [esp + 0x208], 0x19
call fcn.00413bf0
sub esp, 0x10
lea edx, [esp + 0x8a]
mov ecx, esp
mov dword [esp + 0x70], esp
push edx
push 0x50f9a8
mov byte [esp + 0x218], 0x1a
call fcn.00413bf0
sub esp, 0x10
lea eax, [esp + 0x7e]
mov ecx, esp
mov dword [esp + 0xa0], esp
push eax
push 0x520010
mov byte [esp + 0x228], 0x1b
call fcn.00413bf0
sub esp, 0x10
mov byte [esp + 0x230], 0x1c
mov esi, esp
mov dword [esp + 0xa4], esp
push ecx
mov ecx, esp
mov dword [esp + 0x6c], esp
push 6
push 0x50f9a0
call fcn.004be240
push esi
call fcn.004cfca0
sub esp, 8
mov byte [esp + 0x240], 0x1d
mov esi, esp
mov dword [esp + 0x78], esp
push ecx
mov ecx, esp
mov dword [esp + 0x7c], esp
push 6
push 0x50f9a0
call fcn.004be240
push esi
call fcn.004cfca0
add esp, 8
lea ecx, [esp + 0x124]
mov byte [esp + 0x240], 1
push ecx
mov ecx, 0x5200a8
call fcn.004cb120
mov dx, word [eax]
mov ecx, dword [0x4f73d0]
lea esi, [eax + 4]
mov word [esp + 0x24], dx
mov byte [esp + 0x1e0], 0x1e
mov eax, dword [esi + 8]
mov ebp, eax
cmp ecx, ebp
jae 0x407811
mov ebp, ecx
lea edx, [esp + 0x28]
cmp edx, esi
jne 0x407834
push ecx
push ebp
lea ecx, [esp + 0x30]
call fcn.00414360
push ebx
push ebx
lea ecx, [esp + 0x30]
call fcn.00414360
jmp 0x4078bb
cmp ebp, ebx
jbe 0x407881
cmp ebp, eax
jne 0x407881
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x407848
mov eax, 0x4f7480
cmp byte [eax - 1], 0xfe
jae 0x407881
push 1
lea ecx, [esp + 0x2c]
call fcn.00414090
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x407865
mov eax, 0x4f7480
mov dword [esp + 0x2c], eax
mov ecx, dword [esi + 8]
mov dword [esp + 0x30], ecx
mov esi, dword [esi + 0xc]
mov dword [esp + 0x34], esi
mov cl, byte [eax - 1]
inc cl
mov byte [eax - 1], cl
jmp 0x4078bb
push 1
push ebp
lea ecx, [esp + 0x30]
call fcn.004144a0
test al, al
je 0x4078bb
mov esi, dword [esi + 4]
cmp esi, ebx
jne 0x40789d
mov esi, 0x4f7480
mov edi, dword [esp + 0x2c]
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 + 0x2c]
call fcn.00414480
mov eax, dword [esp + 0xcc]
mov byte [esp + 0x1e0], 1
cmp eax, ebx
je 0x4078eb
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4078e2
cmp al, 0xff
je 0x4078e2
dec al
mov byte [ecx], al
jmp 0x4078eb
push ecx
call fcn.004de1a0
add esp, 4
lea ecx, [esp + 0x24]
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xd4], ebx
call fcn.004c48d0
cmp ax, 2
je 0x407d5e
lea ecx, [esp + 0x8c]
push ecx
lea ecx, [esp + 0x28]
call fcn.004ca4a0
mov edi, dword [eax + 4]
cmp edi, ebx
jne 0x407930
mov edi, 0x4f7480
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xd8]
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 + 0x90]
and ecx, 3
cmp eax, ebx
rep movsb byte es:[edi], byte [esi]
je 0x40797c
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x407973
cmp al, 0xff
je 0x407973
dec al
mov byte [ecx], al
jmp 0x40797c
push ecx
call fcn.004de1a0
add esp, 4
lea ecx, [esp + 0xd8]
mov dword [esp + 0x90], ebx
push ecx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
call fcn.004dea48
add esp, 4
cmp al, 0xff
mov byte [esp + 0x38], al
jb 0x407d5e
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x50f76c
call fcn.004be240
push ecx
mov byte [esp + 0x1f0], 0x1f
mov ecx, esp
mov dword [esp + 0x30], esp
push 6
push 0x50fa14
call fcn.004be240
mov ecx, 0x5200a8
mov byte [esp + 0x1f0], 1
call fcn.004caf10
jmp 0x40769a
sub eax, ebx
je 0x407a05
dec eax
je 0x407ebb
jmp 0x407d5e
push 0xff
lea edx, [esp + 0xdc]
push 0x50f930
push edx
call fcn.004de8d6
mov al, byte [esp + 0x4a]
push ecx
mov ebp, esp
lea edi, [esp + 0xe8]
or ecx, 0xffffffff
mov dword [esp + 0x20], esp
mov byte [ebp], al
xor eax, eax
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x2c], ecx
push ecx
mov ecx, ebp
call fcn.004144a0
test al, al
je 0x407a7f
mov eax, dword [esp + 0x28]
mov edi, dword [ebp + 4]
mov ecx, eax
lea esi, [esp + 0xe8]
mov edx, ecx
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], eax
mov ebp, dword [ebp + 4]
add ebp, eax
mov byte [ebp], bl
sub esp, 0x10
lea eax, [esp + 0x87]
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
push 0x50f8e4
mov byte [esp + 0x208], 0x20
call fcn.00413bf0
sub esp, 0x10
lea edx, [esp + 0x8b]
mov ecx, esp
mov dword [esp + 0x70], esp
push edx
push 0x50f9a8
mov byte [esp + 0x218], 0x21
call fcn.00413bf0
sub esp, 0x10
lea eax, [esp + 0x98]
mov ecx, esp
mov dword [esp + 0xa0], esp
push eax
push 0x520010
mov byte [esp + 0x228], 0x22
call fcn.00413bf0
sub esp, 0x10
mov byte [esp + 0x230], 0x23
mov esi, esp
mov dword [esp + 0xa4], esp
push ecx
mov ecx, esp
mov dword [esp + 0x6c], esp
push 6
push 0x50f9a0
call fcn.004be240
push esi
call fcn.004cfca0
sub esp, 8
mov byte [esp + 0x240], 0x24
mov esi, esp
mov dword [esp + 0x78], esp
push ecx
mov ecx, esp
mov dword [esp + 0x7c], esp
push 6
push 0x50f9a0
call fcn.004be240
push esi
call fcn.004cfca0
add esp, 8
lea ecx, [esp + 0x110]
mov byte [esp + 0x240], 1
push ecx
mov ecx, 0x5200a8
call fcn.004cb120
mov dx, word [eax]
mov edi, dword [0x4f73d0]
lea esi, [eax + 4]
mov word [esp + 0x24], dx
mov byte [esp + 0x1e0], 0x25
mov eax, dword [esi + 8]
mov ebp, eax
cmp edi, ebp
jae 0x407b83
mov ebp, edi
lea ecx, [esp + 0x28]
cmp ecx, esi
jne 0x407bf5
cmp dword [esp + 0x30], ebp
jae 0x407b96
call fcn.004de3d7
lea ecx, [esp + 0x28]
call fcn.00415170
mov eax, dword [esp + 0x30]
sub eax, ebp
cmp eax, edi
jae 0x407bab
mov edi, eax
cmp edi, ebx
jbe 0x407be5
mov edx, dword [esp + 0x2c]
sub eax, edi
push eax
lea ecx, [edx + ebp]
lea edx, [ecx + edi]
push edx
push ecx
call fcn.004dea60
mov esi, dword [esp + 0x3c]
add esp, 0xc
sub esi, edi
lea ecx, [esp + 0x28]
push ebx
push esi
call fcn.004144a0
test al, al
je 0x407be5
push esi
lea ecx, [esp + 0x2c]
call fcn.00414480
push ebx
push ebx
lea ecx, [esp + 0x30]
call fcn.00414360
jmp 0x407c7d
cmp ebp, ebx
jbe 0x407c42
cmp ebp, eax
jne 0x407c42
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x407c09
mov eax, 0x4f7480
cmp byte [eax - 1], 0xfe
jae 0x407c42
push 1
lea ecx, [esp + 0x2c]
call fcn.00414090
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x407c26
mov eax, 0x4f7480
mov dword [esp + 0x2c], eax
mov ecx, dword [esi + 8]
mov dword [esp + 0x30], ecx
mov esi, dword [esi + 0xc]
mov dword [esp + 0x34], esi
mov cl, byte [eax - 1]
inc cl
mov byte [eax - 1], cl
jmp 0x407c7d
push 1
push ebp
lea ecx, [esp + 0x30]
call fcn.004144a0
test al, al
je 0x407c7d
mov esi, dword [esi + 4]
cmp esi, ebx
jne 0x407c5e
mov esi, 0x4f7480
mov edi, dword [esp + 0x2c]
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 + 0x2c]
mov dword [esp + 0x30], ebp
mov byte [ecx + ebp], bl
mov eax, dword [esp + 0xb8]
mov byte [esp + 0x1e0], 1
cmp eax, ebx
je 0x407cad
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x407ca4
cmp al, 0xff
je 0x407ca4
dec al
mov byte [ecx], al
jmp 0x407cad
push ecx
call fcn.004de1a0
add esp, 4
lea ecx, [esp + 0x24]
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], ebx
call fcn.004c48d0
cmp ax, 1
jne 0x407d5e
lea edx, [esp + 0x78]
lea ecx, [esp + 0x24]
push edx
call fcn.004ca4a0
mov edi, dword [eax + 4]
cmp edi, ebx
jne 0x407cef
mov edi, 0x4f7480
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xd8]
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 + 0x7c]
and ecx, 3
cmp eax, ebx
rep movsb byte es:[edi], byte [esi]
je 0x407d38
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x407d2f
cmp al, 0xff
je 0x407d2f
dec al
mov byte [ecx], al
jmp 0x407d38
push ecx
call fcn.004de1a0
add esp, 4
lea ecx, [esp + 0xd8]
mov dword [esp + 0x7c], ebx
push ecx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
call fcn.004dea48
add esp, 4
mov byte [esp + 0x38], al
xor al, al
cmp al, bl
jne 0x407ebb
jmp 0x407026
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x50f76c
call fcn.004be240
push ecx
mov byte [esp + 0x1f0], 0x11
mov ecx, esp
mov dword [esp + 0x30], esp
push 6
push 0x50f970
call fcn.004be240
mov ecx, 0x5200a8
mov byte [esp + 0x1f0], 1
call fcn.004caf10
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x407dd5
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x407dcc
cmp al, 0xff
je 0x407dcc
dec al
mov byte [ecx], al
jmp 0x407dd5
push ecx
call fcn.004de1a0
add esp, 4
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x48]
cmp esi, eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x1e0], 0xffffffff
mov edi, eax
je 0x407eb5
mov ecx, esi
call fcn.00404da0
add esi, 0x1c
cmp esi, edi
jne 0x407dfe
mov esi, dword [esp + 0x48]
push esi
jmp 0x407fa0
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x50f76c
call fcn.004be240
push ecx
mov byte [esp + 0x1f0], 0x12
mov ecx, esp
mov dword [esp + 0x30], esp
push 6
push 0x50f9bc
call fcn.004be240
mov ecx, 0x5200a8
mov byte [esp + 0x1f0], 1
call fcn.004caf10
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x407e7e
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x407e75
cmp al, 0xff
je 0x407e75
dec al
mov byte [ecx], al
jmp 0x407e7e
push ecx
call fcn.004de1a0
add esp, 4
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x48]
cmp esi, eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x1e0], 0xffffffff
mov edi, eax
je 0x407eb5
mov ecx, esi
call fcn.00404da0
add esi, 0x1c
cmp esi, edi
jne 0x407ea3
mov esi, dword [esp + 0x48]
push esi
jmp 0x407fa0
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x407ee0
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x407ed7
cmp al, 0xff
je 0x407ed7
dec al
mov byte [ecx], al
jmp 0x407ee0
push ecx
call fcn.004de1a0
add esp, 4
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x48]
cmp edi, eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x1e0], 0xffffffff
mov ebp, eax
mov dword [esp + 0x18], edi
je 0x407f9f
mov eax, dword [edi + 0x10]
lea esi, [edi + 0xc]
cmp eax, ebx
mov dword [esp + 0x1e0], 0x27
je 0x407f60
push eax
mov ecx, esi
call fcn.004145c0
cmp byte [eax], bl
je 0x407f4d
mov edx, dword [esi + 4]
mov ecx, esi
push edx
call fcn.004145c0
cmp byte [eax], 0xff
je 0x407f4d
mov eax, dword [esi + 4]
mov ecx, esi
push eax
call fcn.004145c0
dec byte [eax]
jmp 0x407f60
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
add ecx, 2
dec edx
push ecx
push edx
mov ecx, esi
call fcn.0048c5f0
lea ecx, [edi + 8]
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov byte [esp + 0x1e0], 0x26
call fcn.004be2e0
lea ecx, [edi + 4]
mov dword [esp + 0x1e0], 0xffffffff
call fcn.004be2e0
add edi, 0x1c
cmp edi, ebp
mov dword [esp + 0x18], edi
jne 0x407f0d
mov edi, dword [esp + 0x48]
push edi
call fcn.004de1a0
mov ecx, dword [esp + 0x1dc]
add esp, 4
mov ax, 1
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1d4
ret