Function at 0x408f00
Capabilities:
Access peb ldr_data
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4e7c21
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x194
push ebx
mov al, byte [esp + 0x2b]
push ebp
push esi
push edi
mov esi, ecx
sub esp, 0x10
or ebx, 0xffffffff
mov edx, esp
xor ebp, ebp
mov edi, 0x520168
mov ecx, ebx
mov byte [edx], al
xor eax, eax
mov dword [edx + 4], ebp
mov dword [edx + 8], ebp
mov dword [edx + 0xc], ebp
mov dword [esp + 0x24], esp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x54], esi
push ecx
push 0x520168
mov ecx, edx
call fcn.004120b0
push ebp
lea ecx, [esp + 0x80]
call fcn.004cabb0
mov cl, byte [esp + 0x37]
mov dword [esp + 0x1ac], ebp
mov byte [esp + 0x18], cl
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
lea ecx, [esp + 0x30]
mov byte [esp + 0x1ac], 1
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
call fcn.004be970
lea ecx, [esp + 0x38]
mov byte [esp + 0x1ac], 2
call fcn.004be970
mov ebx, 3
mov ecx, esi
mov byte [esp + 0x1ac], bl
call fcn.00481930
cmp ax, 0xffff
jne 0x40901c
lea ecx, [esp + 0x38]
mov byte [esp + 0x1ac], 2
call fcn.004beab0
lea ecx, [esp + 0x30]
mov byte [esp + 0x1ac], 1
call fcn.004beab0
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
cmp esi, eax
mov byte [esp + 0x1ac], 0
mov edi, eax
je 0x40a204
mov ecx, esi
call fcn.00404ef0
add esi, 0x1c
cmp esi, edi
jne 0x409004
mov esi, dword [esp + 0x1c]
push esi
jmp 0x40a66c
mov byte [esp + 0x40], al
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x24], esp
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 6
push 0x50fb5c
call fcn.004bea10
push esi
call fcn.004d0560
mov ecx, dword [0x52020c]
add esp, 8
call fcn.004d1040
push ebp
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x50fa00
call fcn.004bea10
mov ecx, dword [0x52020c]
call fcn.004d1240
mov al, byte [esp + 0x40]
push ebp
push ecx
test al, al
mov ecx, esp
jne 0x409088
mov dword [esp + 0x1c], esp
push 6
push 0x50fb54
jmp 0x409093
mov dword [esp + 0x1c], esp
push 6
push 0x50fb4c
call fcn.004bea10
mov ecx, dword [0x52020c]
call fcn.004d1240
push ebp
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x50f9d0
call fcn.004bea10
mov ecx, dword [0x52020c]
call fcn.004d1240
mov edi, dword [esp + 0x40]
lea eax, [esp + 0xa4]
mov edx, edi
and edx, 0xff
push edx
push 0x50f938
push eax
call fcn.004df246
add esp, 8
mov ecx, esp
mov dword [esp + 0x18], esp
push 6
push 0x50f5c0
call fcn.004bea10
sub esp, 0x10
lea edx, [esp + 0x4b]
mov ecx, esp
mov dword [esp + 0x6c], esp
lea eax, [esp + 0xb8]
push edx
push eax
mov byte [esp + 0x1c8], 4
call fcn.00411a00
push ecx
mov byte [esp + 0x1c4], 5
mov ecx, esp
mov dword [esp + 0x44], esp
push 6
push 0x50f9a0
call fcn.004bea10
mov ecx, dword [0x52020c]
mov byte [esp + 0x1c4], bl
call fcn.004d15e0
mov ecx, dword [0x52020c]
call fcn.004d17f0
push 0xa
mov esi, eax
call fcn.004bba40
add esp, 4
cmp si, 2
je 0x40a1ba
movsx eax, si
sub eax, ebp
je 0x40923f
dec eax
jne 0x409020
mov al, byte [esp + 0x40]
test al, al
jne 0x409257
movsx cx, byte [0x50c1ac]
push ecx
push 0x50c1ad
lea ecx, [esp + 0x38]
call fcn.004bef10
lea edx, [esp + 0x38]
lea eax, [esp + 0x30]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.004be980
call fcn.0047c9f0
add esp, 8
movsx esi, ax
call fcn.004cd4a0
test al, al
jne 0x409211
cmp esi, ebp
jg 0x409211
push ebp
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push 6
push 0x50f76c
call fcn.004bea10
push ecx
mov byte [esp + 0x1bc], 6
mov ecx, esp
mov dword [esp + 0x24], esp
push 6
push 0x50fb44
call fcn.004bea10
mov ecx, 0x520200
mov byte [esp + 0x1bc], bl
call fcn.004cb760
jmp 0x409020
push ebp
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push 6
push 0x50f634
call fcn.004bea10
push ecx
mov byte [esp + 0x1bc], 7
mov ecx, esp
mov dword [esp + 0x24], esp
push 6
push 0x50fb3c
jmp 0x4091f6
mov ecx, dword [esp + 0x44]
call fcn.00481930
cmp ax, 0xffff
je 0x409020
jmp 0x40901c
mov eax, edi
and eax, 0xff
mov dword [esp + 0x58], eax
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x3c], esp
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push 6
push 0x50fb5c
call fcn.004bea10
push esi
call fcn.004d0560
mov ecx, dword [0x52020c]
add esp, 8
call fcn.004d1040
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push 6
push 0x50fb34
call fcn.004bea10
mov ecx, dword [0x52020c]
call fcn.004d1240
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push 6
push 0x50f9d0
call fcn.004bea10
mov ecx, dword [0x52020c]
call fcn.004d1240
mov ecx, dword [esp + 0x58]
lea edx, [esp + 0xa4]
push ecx
push 0x50f938
push edx
call fcn.004df246
add esp, 8
mov ecx, esp
mov dword [esp + 0x30], esp
push 6
push 0x50f5c0
call fcn.004bea10
sub esp, 0x10
lea eax, [esp + 0x79]
mov ecx, esp
mov dword [esp + 0x28], esp
lea edx, [esp + 0xb8]
push eax
push edx
mov byte [esp + 0x1c8], 8
call fcn.00411a00
push ecx
mov byte [esp + 0x1c4], 9
mov ecx, esp
mov dword [esp + 0x6c], esp
push 6
push 0x50f9a0
call fcn.004bea10
mov ecx, dword [0x52020c]
mov byte [esp + 0x1c4], bl
call fcn.004d15e0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
cmp eax, ecx
mov ebp, eax
mov edi, ecx
mov esi, eax
je 0x409370
push 0
mov ecx, esi
call fcn.00413830
add esi, 0x1c
cmp esi, edi
jne 0x409360
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x4c]
push eax
push ecx
mov ecx, dword [esp + 0x4c]
push edx
push 1
mov dword [esp + 0x30], ebp
call fcn.00408c30
test ax, ax
je 0x40985a
jl 0x40a20a
movsx eax, word [esp + 0x4c]
push eax
lea ecx, [esp + 0xa8]
push 0x50f938
push ecx
call fcn.004df246
add esp, 8
mov ecx, esp
mov dword [esp + 0x58], esp
push 6
push 0x50f5c0
call fcn.004bea10
sub esp, 0x10
lea edx, [esp + 0x5f]
mov ecx, esp
mov dword [esp + 0x40], esp
lea eax, [esp + 0xb8]
push edx
push eax
mov byte [esp + 0x1c8], 0xc
call fcn.00411a00
push ecx
mov byte [esp + 0x1c4], 0xd
mov ecx, esp
mov dword [esp + 0x2c], esp
push 6
push 0x50fb2c
call fcn.004bea10
mov ecx, dword [0x52020c]
mov byte [esp + 0x1c4], bl
call fcn.004d15e0
xor esi, esi
xor ebp, ebp
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x409573
mov ecx, dword [esp + 0x20]
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 0x409573
mov al, byte [edi + ebp]
push esi
cmp al, 1
lea ecx, [esp + 0x1c]
jne 0x409504
call fcn.00411ba0
push ecx
add eax, 4
mov ecx, esp
mov dword [esp + 0x58], esp
push eax
call fcn.004be980
mov ecx, dword [esp + 0x48]
call fcn.0047e730
test ax, ax
je 0x40956a
push 0
push 0xffff
push esi
lea ecx, [esp + 0x24]
call fcn.00411ba0
push ecx
add eax, 8
mov ecx, esp
mov dword [esp + 0x60], esp
push eax
call fcn.004be980
push esi
lea ecx, [esp + 0x28]
mov byte [esp + 0x1bc], 0xe
call fcn.00411ba0
sub esp, 0x10
add eax, 0xc
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
call fcn.004118e0
push esi
lea ecx, [esp + 0x38]
mov byte [esp + 0x1cc], 0xf
call fcn.00411ba0
push ecx
add eax, 4
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.004be980
mov ecx, dword [0x520208]
mov byte [esp + 0x1cc], bl
call fcn.004cebe0
inc esi
add ebp, 0x1c
jmp 0x40941e
call fcn.00411ba0
push ecx
add eax, 8
mov ecx, esp
mov dword [esp + 0x58], esp
push eax
call fcn.004be980
push esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x1b4], 0x10
call fcn.00411ba0
sub esp, 0x10
add eax, 0xc
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
call fcn.004118e0
push ecx
mov byte [esp + 0x1c4], 0x11
mov ecx, esp
mov dword [esp + 0x2c], esp
push 6
push 0x50f998
call fcn.004bea10
mov ecx, dword [0x52020c]
mov byte [esp + 0x1c4], bl
call fcn.004d15e0
inc esi
add ebp, 0x1c
jmp 0x40941e
mov ecx, dword [0x52020c]
call fcn.004d17f0
push 0xa
mov esi, eax
call fcn.004bba40
add esp, 4
cmp si, 1
je 0x40a2e6
test si, si
jne 0x409262
push 0xffff
lea edx, [esp + 0xa8]
push 0x50f938
push edx
call fcn.004df246
mov al, byte [esp + 0x57]
push ecx
mov ebp, esp
xor esi, esi
lea edi, [esp + 0xb4]
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 + 0x64], esp
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov dword [esp + 0x28], ecx
push ecx
mov ecx, ebp
call fcn.00412290
test al, al
je 0x409617
mov eax, dword [esp + 0x24]
mov edi, dword [ebp + 4]
mov ecx, eax
lea esi, [esp + 0xb4]
mov edx, ecx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, ebx
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.00412270
xor esi, esi
sub esp, 0x10
lea eax, [esp + 0x87]
mov ecx, esp
mov dword [esp + 0x4c], esp
push eax
push 0x50f8ec
mov byte [esp + 0x1d4], 0x12
call fcn.00411a00
sub esp, 0x10
lea edx, [esp + 0x91]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
push 0x50fa38
mov byte [esp + 0x1e4], 0x13
call fcn.00411a00
sub esp, 0x10
lea eax, [esp + 0x9e]
mov ecx, esp
mov dword [esp + 0x7c], esp
push eax
push 0x520168
mov byte [esp + 0x1f4], 0x14
call fcn.00411a00
sub esp, 0x10
mov byte [esp + 0x1fc], 0x15
mov edi, esp
mov dword [esp + 0x78], esp
push ecx
mov ecx, esp
mov dword [esp + 0x64], esp
push 6
push 0x50fb34
call fcn.004bea10
push edi
call fcn.004d0560
sub esp, 8
mov byte [esp + 0x20c], 0x16
mov edi, esp
mov dword [esp + 0x70], esp
push ecx
mov ecx, esp
mov dword [esp + 0x74], esp
push 6
push 0x50fb34
call fcn.004bea10
push edi
call fcn.004d0560
add esp, 8
lea ecx, [esp + 0xf0]
mov byte [esp + 0x20c], bl
push ecx
mov ecx, 0x520200
call fcn.004cb970
mov ecx, dword [0x4f73d0]
mov dx, word [eax]
push ecx
add eax, 4
push esi
push eax
lea ecx, [esp + 0x7c]
mov byte [esp + 0x1b8], 0x17
mov word [esp + 0x78], dx
call fcn.00411c90
mov eax, dword [esp + 0x98]
mov byte [esp + 0x1ac], bl
cmp eax, esi
je 0x409744
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40973b
cmp al, 0xff
je 0x40973b
dec al
mov byte [ecx], al
jmp 0x409744
push ecx
call fcn.004deb10
add esp, 4
lea ecx, [esp + 0x6c]
mov dword [esp + 0x98], esi
mov dword [esp + 0x9c], esi
mov dword [esp + 0xa0], esi
call fcn.004c4fe0
cmp ax, 2
je 0x409262
lea edx, [esp + 0x80]
lea ecx, [esp + 0x6c]
push edx
call fcn.004cacf0
mov edi, dword [eax + 4]
test edi, edi
jne 0x409789
mov edi, 0x4f7480
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, ebx
rep movsb byte es:[edi], byte [esi]
xor esi, esi
cmp eax, esi
je 0x4097d6
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4097cd
cmp al, 0xff
je 0x4097cd
dec al
mov byte [ecx], al
jmp 0x4097d6
push ecx
call fcn.004deb10
add esp, 4
lea ecx, [esp + 0xa4]
mov dword [esp + 0x84], esi
push ecx
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], esi
call fcn.004df3b8
add esp, 4
mov dword [esp + 0x50], eax
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
cmp esi, edi
mov ebp, esi
je 0x40981b
mov ecx, esi
call fcn.00404ef0
add esi, 0x1c
cmp esi, edi
jne 0x40980d
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x18]
lea eax, [esp + 0x4c]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x50]
push 1
mov dword [esp + 0x30], ebp
call fcn.00408c30
test ax, ax
je 0x409bef
jl 0x40a335
cmp ax, 0xff
jne 0x409885
push 0xa
call fcn.004bba40
add esp, 4
jmp 0x4097ff
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x50f76c
call fcn.004bea10
push ecx
mov byte [esp + 0x1bc], 0xa
mov ecx, esp
mov dword [esp + 0x38], esp
jmp 0x409c15
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x20], esp
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 6
push 0x50fb5c
call fcn.004bea10
push esi
call fcn.004d0560
mov ecx, dword [0x52020c]
add esp, 8
call fcn.004d1040
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 6
push 0x50fb24
call fcn.004bea10
mov ecx, dword [0x52020c]
call fcn.004d1240
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 6
push 0x50f9d0
call fcn.004bea10
mov ecx, dword [0x52020c]
call fcn.004d1240
mov edx, dword [esp + 0x58]
lea eax, [esp + 0xa4]
push edx
push 0x50f938
push eax
call fcn.004df246
add esp, 8
mov ecx, esp
mov dword [esp + 0x14], esp
push 6
push 0x50f5c0
call fcn.004bea10
sub esp, 0x10
lea edx, [esp + 0x7a]
mov ecx, esp
mov dword [esp + 0x3c], esp
lea eax, [esp + 0xb8]
push edx
push eax
mov byte [esp + 0x1c8], 0x1a
call fcn.00411a00
push ecx
mov byte [esp + 0x1c4], 0x1b
mov ecx, esp
mov dword [esp + 0x54], esp
push 6
push 0x50f9a0
call fcn.004bea10
mov ecx, dword [0x52020c]
mov byte [esp + 0x1c4], bl
call fcn.004d15e0
movsx ecx, word [esp + 0x4c]
push ecx
lea edx, [esp + 0xa8]
push 0x50f938
push edx
call fcn.004df246
add esp, 8
mov ecx, esp
mov dword [esp + 0x14], esp
push 6
push 0x50f5c0
call fcn.004bea10
sub esp, 0x10
mov byte [esp + 0x1c0], 0x1c
mov ecx, esp
lea eax, [esp + 0x73]
mov dword [esp + 0x3c], esp
lea edx, [esp + 0xb8]
push eax
push edx
call fcn.00411a00
push ecx
mov byte [esp + 0x1c4], 0x1d
mov ecx, esp
mov dword [esp + 0x54], esp
push 6
push 0x50fb2c
call fcn.004bea10
mov ecx, dword [0x52020c]
mov byte [esp + 0x1c4], bl
call fcn.004d15e0
movsx eax, word [esp + 0x50]
push eax
lea ecx, [esp + 0xa8]
push 0x50f938
push ecx
call fcn.004df246
add esp, 8
mov ecx, esp
mov dword [esp + 0x14], esp
push 6
push 0x50f5c0
call fcn.004bea10
sub esp, 0x10
lea edx, [esp + 0x74]
mov ecx, esp
mov dword [esp + 0x3c], esp
lea eax, [esp + 0xb8]
push edx
push eax
mov byte [esp + 0x1c8], 0x1e
call fcn.00411a00
push ecx
mov byte [esp + 0x1c4], 0x1f
mov ecx, esp
mov dword [esp + 0x54], esp
push 6
push 0x50fb1c
call fcn.004bea10
mov ecx, dword [0x52020c]
mov byte [esp + 0x1c4], bl
call fcn.004d15e0
xor esi, esi
xor ebp, ebp
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x409bc4
mov ecx, dword [esp + 0x20]
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 0x409bc4
mov al, byte [edi + ebp]
push esi
cmp al, 1
lea ecx, [esp + 0x1c]
jne 0x409b55
call fcn.00411ba0
push ecx
add eax, 4
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.004be980
mov ecx, dword [esp + 0x48]
call fcn.0047e730
test ax, ax
je 0x409bbb
push 0
push 0xffff
push esi
lea ecx, [esp + 0x24]
call fcn.00411ba0
push ecx
add eax, 8
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.004be980
push esi
lea ecx, [esp + 0x28]
mov byte [esp + 0x1bc], 0x20
call fcn.00411ba0
sub esp, 0x10
add eax, 0xc
mov ecx, esp
mov dword [esp + 0x44], esp
push eax
call fcn.004118e0
push esi
lea ecx, [esp + 0x38]
mov byte [esp + 0x1cc], 0x21
call fcn.00411ba0
push ecx
add eax, 4
mov ecx, esp
mov dword [esp + 0x5c], esp
push eax
call fcn.004be980
mov ecx, dword [0x520208]
mov byte [esp + 0x1cc], bl
call fcn.004cebe0
inc esi
add ebp, 0x1c
jmp 0x409a6f
call fcn.00411ba0
push ecx
add eax, 8
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.004be980
push esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x1b4], 0x22
call fcn.00411ba0
sub esp, 0x10
add eax, 0xc
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
call fcn.004118e0
push ecx
mov byte [esp + 0x1c4], 0x23
mov ecx, esp
mov dword [esp + 0x54], esp
push 6
push 0x50f998
call fcn.004bea10
mov ecx, dword [0x52020c]
mov byte [esp + 0x1c4], bl
call fcn.004d15e0
inc esi
add ebp, 0x1c
jmp 0x409a6f
mov ecx, dword [0x52020c]
call fcn.004d17f0
push 0xa
mov esi, eax
call fcn.004bba40
add esp, 4
cmp si, 1
je 0x40a3c7
test si, si
je 0x409c39
jmp 0x4097ff
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x50f76c
call fcn.004bea10
push ecx
mov byte [esp + 0x1bc], 0x18
mov ecx, esp
mov dword [esp + 0x38], esp
push 6
push 0x50f9c0
call fcn.004bea10
mov ecx, 0x520200
mov byte [esp + 0x1bc], bl
call fcn.004cb760
xor ebp, ebp
jmp 0x409020
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x20], esp
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 6
push 0x50fb5c
call fcn.004bea10
push esi
call fcn.004d0560
mov ecx, dword [0x52020c]
add esp, 8
call fcn.004d1040
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 6
push 0x50fb14
call fcn.004bea10
mov ecx, dword [0x52020c]
call fcn.004d1240
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 6
push 0x50f9d0
call fcn.004bea10
mov ecx, dword [0x52020c]
call fcn.004d1240
mov edx, dword [esp + 0x58]
lea eax, [esp + 0xa4]
push edx
push 0x50f938
push eax
call fcn.004df246
add esp, 8
mov ecx, esp
mov dword [esp + 0x14], esp
push 6
push 0x50f5c0
call fcn.004bea10
sub esp, 0x10
lea edx, [esp + 0x76]
mov ecx, esp
mov dword [esp + 0x3c], esp
lea eax, [esp + 0xb8]
push edx
push eax
mov byte [esp + 0x1c8], 0x26
call fcn.00411a00
push ecx
mov byte [esp + 0x1c4], 0x27
mov ecx, esp
mov dword [esp + 0x54], esp
push 6
push 0x50f9a0
call fcn.004bea10
mov ecx, dword [0x52020c]
mov byte [esp + 0x1c4], bl
call fcn.004d15e0
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
cmp esi, eax
mov ebp, esi
mov edi, eax
mov dword [esp + 0x14], esi
je 0x409d75
push 1
lea ecx, [esi + 0xc]
mov byte [esp + 0x1b0], 0x29
call fcn.00411e90
lea ecx, [esi + 8]
mov byte [esp + 0x1ac], 0x28
call fcn.004beab0
lea ecx, [esi + 4]
mov byte [esp + 0x1ac], bl
call fcn.004beab0
add esi, 0x1c
cmp esi, edi
mov dword [esp + 0x14], esi
jne 0x409d39
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x48]
push edx
push eax
push 2
mov dword [esp + 0x30], ebp
call fcn.00408c30
test ax, ax
je 0x40a06c
jl 0x40a485
movsx ecx, word [esp + 0x4c]
push ecx
lea edx, [esp + 0xa8]
push 0x50f938
push edx
call fcn.004df246
add esp, 8
mov ecx, esp
mov dword [esp + 0x14], esp
push 6
push 0x50f5c0
call fcn.004bea10
sub esp, 0x10
lea eax, [esp + 0x78]
mov ecx, esp
mov dword [esp + 0x3c], esp
lea edx, [esp + 0xb8]
push eax
push edx
mov byte [esp + 0x1c8], 0x2e
call fcn.00411a00
push ecx
mov byte [esp + 0x1c4], 0x2f
mov ecx, esp
mov dword [esp + 0x54], esp
push 6
push 0x50fb2c
call fcn.004bea10
mov ecx, dword [0x52020c]
mov byte [esp + 0x1c4], bl
call fcn.004d15e0
movsx eax, word [esp + 0x50]
push eax
lea ecx, [esp + 0xa8]
push 0x50f938
push ecx
call fcn.004df246
add esp, 8
mov ecx, esp
mov dword [esp + 0x14], esp
push 6
push 0x50f5c0
call fcn.004bea10
sub esp, 0x10
lea edx, [esp + 0x77]
mov ecx, esp
mov dword [esp + 0x3c], esp
lea eax, [esp + 0xb8]
push edx
push eax
mov byte [esp + 0x1c8], 0x30
call fcn.00411a00
push ecx
mov byte [esp + 0x1c4], 0x31
mov ecx, esp
mov dword [esp + 0x54], esp
push 6
push 0x50fb1c
call fcn.004bea10
mov ecx, dword [0x52020c]
mov byte [esp + 0x1c4], bl
call fcn.004d15e0
xor esi, esi
xor ebp, ebp
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x409ff5
mov ecx, dword [esp + 0x20]
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 0x409ff5
mov al, byte [edi + ebp]
push esi
cmp al, 1
lea ecx, [esp + 0x1c]
jne 0x409f86
call fcn.00411ba0
push ecx
add eax, 4
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.004be980
mov ecx, dword [esp + 0x48]
call fcn.0047e730
test ax, ax
je 0x409fec
push 0
push 0xffff
push esi
lea ecx, [esp + 0x24]
call fcn.00411ba0
push ecx
add eax, 8
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.004be980
push esi
lea ecx, [esp + 0x28]
mov byte [esp + 0x1bc], 0x32
call fcn.00411ba0
sub esp, 0x10
add eax, 0xc
mov ecx, esp
mov dword [esp + 0x44], esp
push eax
call fcn.004118e0
push esi
lea ecx, [esp + 0x38]
mov byte [esp + 0x1cc], 0x33
call fcn.00411ba0
push ecx
add eax, 4
mov ecx, esp
mov dword [esp + 0x5c], esp
push eax
call fcn.004be980
mov ecx, dword [0x520208]
mov byte [esp + 0x1cc], bl
call fcn.004cebe0
inc esi
add ebp, 0x1c
jmp 0x409ea0
call fcn.00411ba0
push ecx
add eax, 8
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.004be980
push esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x1b4], 0x34
call fcn.00411ba0
sub esp, 0x10
add eax, 0xc
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
call fcn.004118e0
push ecx
mov byte [esp + 0x1c4], 0x35
mov ecx, esp
mov dword [esp + 0x54], esp
push 6
push 0x50f998
call fcn.004bea10
mov ecx, dword [0x52020c]
mov byte [esp + 0x1c4], bl
call fcn.004d15e0
inc esi
add ebp, 0x1c
jmp 0x409ea0
mov ecx, dword [0x52020c]
call fcn.004d17f0
push 0xa
mov esi, eax
call fcn.004bba40
add esp, 4
cmp si, 1
je 0x40a598
test si, si
jne 0x409c39
push 0
push 4
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x50f634
call fcn.004bea10
push ecx
mov byte [esp + 0x1bc], 0x38
mov ecx, esp
mov dword [esp + 0x38], esp
push 6
push 0x50fb0c
call fcn.004bea10
mov ecx, 0x520200
mov byte [esp + 0x1bc], bl
call fcn.004cb760
cmp ax, bx
je 0x40a097
jmp 0x409c39
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x50f76c
call fcn.004bea10
push ecx
mov byte [esp + 0x1bc], 0x2a
mov ecx, esp
mov dword [esp + 0x38], esp
jmp 0x409c15
lea ecx, [esp + 0x68]
call fcn.004be970
movsx dx, byte [0x50c1c0]
push edx
push 0x50c1c1
lea ecx, [esp + 0x70]
mov byte [esp + 0x1b4], 0x39
call fcn.004bef10
mov al, byte [esp + 0x40]
movsx dx, byte [0x50c1cc]
mov byte [0x50c1d0], al
mov eax, dword [esp + 0x50]
mov ecx, eax
push edx
sar ecx, 8
mov byte [0x50c1d1], cl
push 0x50c1cd
lea ecx, [esp + 0x38]
mov byte [0x50c1d2], al
call fcn.004bef10
push 0x40180000
push 0
push 0x32
push 0x96
mov ecx, 0x5201c8
call fcn.004c2030
push 0
mov ecx, 0x5201c8
call fcn.004c2c00
lea eax, [esp + 0x38]
lea edx, [esp + 0x68]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.004be980
call fcn.0047c9f0
add esp, 8
lea eax, [esp + 0x38]
lea edx, [esp + 0x30]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.004be980
call fcn.0047c9f0
add esp, 8
mov ecx, 0x5201c8
push 1
call fcn.004c2c00
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x50f634
call fcn.004bea10
push ecx
mov byte [esp + 0x1bc], 0x3a
mov ecx, esp
mov dword [esp + 0x38], esp
push 6
push 0x50fb04
call fcn.004bea10
mov ecx, 0x520200
mov byte [esp + 0x1bc], 0x39
call fcn.004cb760
lea ecx, [esp + 0x68]
mov byte [esp + 0x1ac], bl
call fcn.004beab0
xor ebp, ebp
jmp 0x409020
lea ecx, [esp + 0x38]
mov byte [esp + 0x1ac], 2
call fcn.004beab0
lea ecx, [esp + 0x30]
mov byte [esp + 0x1ac], 1
call fcn.004beab0
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
cmp esi, eax
mov byte [esp + 0x1ac], 0
mov edi, eax
je 0x40a204
mov ecx, esi
call fcn.00404ef0
add esi, 0x1c
cmp esi, edi
jne 0x40a1f2
mov esi, dword [esp + 0x1c]
push esi
jmp 0x40a66c
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x50f76c
call fcn.004bea10
push ecx
mov byte [esp + 0x1bc], 0xb
mov ecx, esp
mov dword [esp + 0x38], esp
push 6
push 0x50f978
call fcn.004bea10
mov ecx, 0x520200
mov byte [esp + 0x1bc], bl
call fcn.004cb760
lea ecx, [esp + 0x38]
mov byte [esp + 0x1ac], 2
call fcn.004beab0
lea ecx, [esp + 0x30]
mov byte [esp + 0x1ac], 1
call fcn.004beab0
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
cmp esi, eax
mov byte [esp + 0x1ac], 0
mov edi, eax
je 0x40a297
mov ecx, esi
call fcn.00404ef0
add esi, 0x1c
cmp esi, edi
jne 0x40a285
mov esi, dword [esp + 0x1c]
push esi
call fcn.004deb10
mov eax, dword [esp + 0x78]
add esp, 4
test eax, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
je 0x40a590
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40a587
cmp al, 0xff
je 0x40a587
dec al
mov byte [ecx], al
xor ax, ax
jmp 0x40a698
lea ecx, [esp + 0x38]
mov byte [esp + 0x1ac], 2
call fcn.004beab0
lea ecx, [esp + 0x30]
mov byte [esp + 0x1ac], 1
call fcn.004beab0
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
cmp esi, eax
mov byte [esp + 0x1ac], 0
mov edi, eax
je 0x40a443
mov ecx, esi
call fcn.00404ef0
add esi, 0x1c
cmp esi, edi
jne 0x40a322
jmp 0x40a43f
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x50f76c
call fcn.004bea10
push ecx
mov byte [esp + 0x1bc], 0x19
mov ecx, esp
mov dword [esp + 0x38], esp
push 6
push 0x50f978
call fcn.004bea10
mov ecx, 0x520200
mov byte [esp + 0x1bc], bl
call fcn.004cb760
lea ecx, [esp + 0x38]
mov byte [esp + 0x1ac], 2
call fcn.004beab0
lea ecx, [esp + 0x30]
mov byte [esp + 0x1ac], 1
call fcn.004beab0
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
cmp esi, eax
mov byte [esp + 0x1ac], 0
mov edi, eax
je 0x40a297
mov ecx, esi
call fcn.00404ef0
add esi, 0x1c
cmp esi, edi
jne 0x40a3b4
jmp 0x40a293
lea ecx, [esp + 0x38]
mov byte [esp + 0x1ac], 2
call fcn.004beab0
lea ecx, [esp + 0x30]
mov byte [esp + 0x1ac], 1
call fcn.004beab0
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
cmp esi, edi
mov byte [esp + 0x1ac], 0
mov dword [esp + 0x14], esi
je 0x40a443
mov bl, 0x24
push 1
lea ecx, [esi + 0xc]
mov byte [esp + 0x1b0], 0x25
call fcn.00411e90
lea ecx, [esi + 8]
mov byte [esp + 0x1ac], bl
call fcn.004beab0
lea ecx, [esi + 4]
mov byte [esp + 0x1ac], 0
call fcn.004beab0
add esi, 0x1c
cmp esi, edi
mov dword [esp + 0x14], esi
jne 0x40a403
mov esi, dword [esp + 0x1c]
push esi
call fcn.004deb10
mov eax, dword [esp + 0x78]
xor ecx, ecx
add esp, 4
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
cmp eax, ecx
je 0x40a694
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40a68b
cmp al, 0xff
je 0x40a68b
dec al
mov byte [ecx], al
jmp 0x40a694
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x50f76c
call fcn.004bea10
push ecx
mov byte [esp + 0x1bc], 0x2b
mov ecx, esp
mov dword [esp + 0x38], esp
push 6
push 0x50f978
call fcn.004bea10
mov ecx, 0x520200
mov byte [esp + 0x1bc], bl
call fcn.004cb760
lea ecx, [esp + 0x38]
mov byte [esp + 0x1ac], 2
call fcn.004beab0
lea ecx, [esp + 0x30]
mov byte [esp + 0x1ac], 1
call fcn.004beab0
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
cmp esi, edi
mov byte [esp + 0x1ac], 0
mov dword [esp + 0x14], esi
je 0x40a544
mov bl, 0x2c
push 1
lea ecx, [esi + 0xc]
mov byte [esp + 0x1b0], 0x2d
call fcn.00411e90
lea ecx, [esi + 8]
mov byte [esp + 0x1ac], bl
call fcn.004beab0
lea ecx, [esi + 4]
mov byte [esp + 0x1ac], 0
call fcn.004beab0
add esi, 0x1c
cmp esi, edi
mov dword [esp + 0x14], esi
jne 0x40a504
mov esi, dword [esp + 0x1c]
push esi
call fcn.004deb10
mov eax, dword [esp + 0x78]
add esp, 4
test eax, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
je 0x40a590
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40a587
cmp al, 0xff
je 0x40a587
dec al
mov byte [ecx], al
xor ax, ax
jmp 0x40a698
push ecx
call fcn.004deb10
add esp, 4
xor ax, ax
jmp 0x40a698
lea ecx, [esp + 0x38]
mov byte [esp + 0x1ac], 2
call fcn.004beab0
lea ecx, [esp + 0x30]
mov byte [esp + 0x1ac], 1
call fcn.004beab0
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
cmp edi, eax
mov byte [esp + 0x1ac], 0
mov ebx, eax
mov dword [esp + 0x14], edi
je 0x40a669
xor ebp, ebp
mov eax, dword [edi + 0x10]
lea esi, [edi + 0xc]
cmp eax, ebp
mov byte [esp + 0x1ac], 0x37
je 0x40a62b
push eax
mov ecx, esi
call fcn.004123b0
cmp byte [eax], 0
je 0x40a618
mov eax, dword [esi + 4]
mov ecx, esi
push eax
call fcn.004123b0
cmp byte [eax], 0xff
je 0x40a618
mov ecx, dword [esi + 4]
push ecx
mov ecx, esi
call fcn.004123b0
dec byte [eax]
jmp 0x40a62b
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 4]
add edx, 2
dec eax
push edx
push eax
mov ecx, esi
call fcn.004123c0
lea ecx, [edi + 8]
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov byte [esp + 0x1ac], 0x36
call fcn.004beab0
lea ecx, [edi + 4]
mov byte [esp + 0x1ac], 0
call fcn.004beab0
add edi, 0x1c
cmp edi, ebx
mov dword [esp + 0x14], edi
jne 0x40a5da
mov edi, dword [esp + 0x1c]
jmp 0x40a66b
xor ebp, ebp
push edi
call fcn.004deb10
mov eax, dword [esp + 0x78]
add esp, 4
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
cmp eax, ebp
jmp 0x40a460
push ecx
call fcn.004deb10
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