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

Disassembly:
push 0xffffffffffffffff
push 0x4e78c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x160
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x18]
call fcn.004be970
xor ebx, ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x178], ebx
call fcn.004be970
mov al, byte [esp + 0x13]
sub esp, 0x10
mov edx, esp
or ebp, 0xffffffff
mov edi, 0x520168
mov ecx, ebp
mov byte [edx], al
xor eax, eax
mov dword [edx + 4], ebx
mov dword [edx + 8], ebx
mov dword [edx + 0xc], ebx
mov dword [esp + 0x34], esp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x188], 1
push ecx
push 0x520168
mov ecx, edx
call fcn.004120b0
push ebx
lea ecx, [esp + 0x3c]
call fcn.004cabb0
mov byte [esp + 0x178], 2
mov cl, byte [esp + 0x13]
sub esp, 0x10
mov edx, esp
mov edi, str.zzzzzzzzzzzzzzzzz
xor eax, eax
mov dword [esp + 0x34], esp
mov byte [edx], cl
mov ecx, ebp
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
push str.zzzzzzzzzzzzzzzzz
mov ecx, edx
call fcn.004120b0
sub esp, 0x10
lea edx, [esp + 0x33]
mov ecx, esp
mov dword [esp + 0x8c], esp
push edx
push 0x50f8ec
mov byte [esp + 0x1a0], 3
call fcn.00411a00
sub esp, 0x10
lea eax, [esp + 0x6f]
mov ecx, esp
mov dword [esp + 0x80], esp
push eax
push 0x50fa9c
mov byte [esp + 0x1b0], 4
call fcn.00411a00
sub esp, 0x10
lea edx, [esp + 0x7e]
mov ecx, esp
mov dword [esp + 0x94], esp
push edx
push 0x520168
mov byte [esp + 0x1c0], 5
call fcn.00411a00
sub esp, 0x10
mov byte [esp + 0x1c8], 6
mov esi, esp
mov dword [esp + 0x70], esp
push ecx
mov ecx, esp
mov dword [esp + 0x68], esp
push 6
push 0x50fa94
call fcn.004bea10
push esi
call fcn.004d0560
sub esp, 8
mov byte [esp + 0x1d8], 7
mov esi, esp
mov dword [esp + 0x74], esp
push ecx
mov ecx, esp
mov dword [esp + 0x78], esp
push 6
push 0x50fa8c
call fcn.004bea10
push esi
call fcn.004d0560
add esp, 8
lea eax, [esp + 0xb8]
mov ecx, 0x520200
mov byte [esp + 0x1d8], 2
push eax
call fcn.004cb970
mov cx, word [eax]
mov byte [esp + 0x178], 8
mov word [esp + 0x28], cx
mov edx, dword [0x4f73d0]
add eax, 4
push edx
push ebx
push eax
lea ecx, [esp + 0x38]
call fcn.00411c90
mov eax, dword [esp + 0x60]
mov byte [esp + 0x178], 2
cmp eax, ebx
je 0x408399
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x408390
cmp al, 0xff
je 0x408390
dec al
mov byte [ecx], al
jmp 0x408399
push ecx
call fcn.004deb10
add esp, 4
lea ecx, [esp + 0x28]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
call fcn.004c4fe0
cmp ax, 2
je 0x4086f9
lea eax, [esp + 0x40]
lea ecx, [esp + 0x28]
push eax
call fcn.004cacf0
mov edi, dword [eax + 4]
cmp edi, ebx
jne 0x4083d2
mov edi, 0x4f7480
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x70]
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 + 0x44]
and ecx, 3
cmp eax, ebx
rep movsb byte es:[edi], byte [esi]
je 0x408417
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x40840e
cmp al, 0xff
je 0x40840e
dec al
mov byte [ecx], al
jmp 0x408417
push ecx
call fcn.004deb10
add esp, 4
lea edi, [esp + 0x70]
mov ecx, ebp
xor eax, eax
mov dword [esp + 0x44], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x48], ebx
cmp ecx, 0x11
mov dword [esp + 0x4c], ebx
push ebx
je 0x40847d
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x50f634
call fcn.004bea10
push ecx
mov byte [esp + 0x188], 9
mov ecx, esp
mov dword [esp + 0x30], esp
push 6
push 0x50fa84
call fcn.004bea10
mov ecx, 0x520200
mov byte [esp + 0x188], 2
call fcn.004cb760
jmp 0x40823a
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x50f634
call fcn.004bea10
push ecx
mov byte [esp + 0x188], 0xa
mov ecx, esp
mov dword [esp + 0x30], esp
push 6
push 0x50fa7c
call fcn.004bea10
mov ecx, 0x520200
mov byte [esp + 0x188], 2
call fcn.004cb760
movsx cx, byte [0x50c1f0]
push ecx
push 0x50c1f1
lea ecx, [esp + 0x20]
mov byte [0x50c1f6], 0x26
mov byte [0x50c1f7], bl
call fcn.004bef10
lea edx, [esp + 0x1c]
lea eax, [esp + 0x18]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.004be980
call fcn.0047c9f0
add esp, 8
movsx esi, ax
call fcn.004cd4a0
test al, al
je 0x40853d
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x50f634
call fcn.004bea10
push ecx
mov byte [esp + 0x188], 0xb
mov ecx, esp
mov dword [esp + 0x30], esp
push 6
push 0x50fa44
jmp 0x4086e2
cmp esi, ebx
push ebx
jg 0x4085e1
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x50f76c
call fcn.004bea10
push ecx
mov byte [esp + 0x188], 0xc
mov ecx, esp
mov dword [esp + 0x30], esp
push 6
push 0x50fa74
call fcn.004bea10
mov ecx, 0x520200
mov byte [esp + 0x188], 2
call fcn.004cb760
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x4085ad
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4085a4
cmp al, 0xff
je 0x4085a4
dec al
mov byte [ecx], al
jmp 0x4085ad
push ecx
call fcn.004deb10
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov byte [esp + 0x178], bl
call fcn.004beab0
lea ecx, [esp + 0x18]
mov dword [esp + 0x178], ebp
call fcn.004beab0
xor ax, ax
jmp 0x40874e
lea ecx, [esp + 0x20]
call fcn.004bec90
cmp al, 4
ja 0x40861f
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x50f76c
call fcn.004bea10
push ecx
mov byte [esp + 0x188], 0xd
mov ecx, esp
mov dword [esp + 0x30], esp
push 6
push 0x50f9c0
jmp 0x4086e2
xor eax, eax
mov dword [esp + 0x24], eax
jmp 0x40862b
mov eax, dword [esp + 0x24]
mov dl, byte [esp + eax + 0x70]
mov cl, al
movsx ax, byte [0x50c1f0]
add cl, 0x26
push eax
mov byte [0x50c1f6], cl
push 0x50c1f1
lea ecx, [esp + 0x20]
mov byte [0x50c1f7], dl
call fcn.004bef10
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x18]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.004be980
call fcn.0047c9f0
add esp, 8
cmp ax, bx
jle 0x4086b6
mov eax, dword [esp + 0x24]
inc eax
cmp eax, 0x11
mov dword [esp + 0x24], eax
jl 0x408627
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x50f634
call fcn.004bea10
push ecx
mov byte [esp + 0x188], 0xf
mov ecx, esp
mov dword [esp + 0x30], esp
push 6
push 0x50fa44
jmp 0x4086e2
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x50f634
call fcn.004bea10
push ecx
mov byte [esp + 0x188], 0xe
mov ecx, esp
mov dword [esp + 0x30], esp
push 6
push 0x50fa74
call fcn.004bea10
mov ecx, 0x520200
mov byte [esp + 0x188], 2
call fcn.004cb760
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x40871e
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x408715
cmp al, 0xff
je 0x408715
dec al
mov byte [ecx], al
jmp 0x40871e
push ecx
call fcn.004deb10
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov byte [esp + 0x178], bl
call fcn.004beab0
lea ecx, [esp + 0x18]
mov dword [esp + 0x178], ebp
call fcn.004beab0
mov ax, 1
mov ecx, dword [esp + 0x170]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x16c
ret