Function at 0x4122a8
Capabilities:
Encrypt data using rc4 ksa
Enumerate pe sections

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x10c
mov ebp, dword [esp + 0x120]
mov edi, dword [esp + 0x128]
mov eax, dword [esp + 0x124]
add eax, dword [edi]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x134]
mov eax, dword [eax]
mov edi, dword [esp + 0x130]
add edi, eax
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], 0xffffffff
mov edi, dword [esp + 0x138]
and edi, 4
mov dword [esp + 0x64], edi
jne 0x412311
mov edx, dword [esp + 0x130]
sub edx, dword [esp + 0x12c]
lea eax, [eax + edx - 1]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x50]
inc eax
mov dword [esp + 0x24], eax
mov edi, dword [esp + 0x50]
test eax, edi
jne 0x412332
mov eax, dword [esp + 0x12c]
cmp dword [esp + 0x130], eax
jae 0x412356
mov eax, dword [esp + 0x134]
mov dword [eax], 0
mov eax, dword [esp + 0x128]
mov dword [eax], 0
mov ebx, 0xfffffffd
jmp 0x413f0e
mov eax, dword [ebp + 4]
mov dword [esp + 0x14], eax
mov esi, dword [ebp + 0x38]
mov edi, dword [ebp + 0x3c]
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x40]
mov dword [esp + 0x48], eax
cmp dword [ebp], 0x35
ja case.0x41238c.4
mov eax, dword [ebp]
jmp dword [eax*4 + 0x41704c]
mov dword [ebp + 0xc], 0
mov dword [ebp + 8], 0
mov dword [ebp + 0x1c], 1
mov dword [ebp + 0x10], 1
test byte [esp + 0x138], 1
jne 0x4123f8
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
xor esi, esi
xor edi, edi
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x14], 0
jmp 0x412573
xor esi, esi
xor edi, edi
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x124], eax
jb 0x412457
mov eax, dword [esp + 0x138]
and eax, 2
cmp eax, 1
sbb ebx, ebx
and ebx, 0xfffffffb
inc ebx
mov dword [ebp], 1
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
jmp 0x4124a0
mov eax, dword [esp + 0x124]
inc eax
mov edx, dword [esp + 0x124]
movzx edx, byte [edx]
mov dword [ebp + 8], edx
jmp 0x412475
mov eax, dword [esp + 0x124]
cmp eax, dword [esp + 0x40]
jb 0x4124a9
mov edx, dword [esp + 0x138]
and edx, 2
cmp edx, 1
sbb ebx, ebx
and ebx, 0xfffffffb
inc ebx
mov dword [ebp], 2
mov edx, dword [esp + 0x130]
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
jmp 0x413d37
lea edx, [eax + 1]
mov dword [esp + 0x20], edx
movzx eax, byte [eax]
mov byte [esp + 0x18], al
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, ecx
shl edx, 8
add eax, edx
mov ebx, 0x1f
xor edx, edx
div ebx
mov eax, 1
test edx, edx
jne 0x4124eb
test byte [esp + 0x18], 0x20
jne 0x4124eb
mov eax, ecx
and eax, 0xf
cmp eax, 8
setne al
movzx eax, al
mov dword [esp + 0x18], eax
cmp dword [esp + 0x64], 0
jne 0x412523
shr ecx, 4
add ecx, 8
mov edx, 1
shl edx, cl
mov ebx, 1
cmp edx, 0x8000
ja 0x41251d
mov edx, dword [esp + 0x24]
shr edx, cl
xor ebx, ebx
test edx, edx
sete bl
or eax, ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
cmp dword [esp + 0x18], 0
je 0x4125cb
jmp 0x412546
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov dword [ebp], 0x24
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
jmp 0x413d34
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x40]
cmp dword [esp + 0x20], edx
jb 0x41259c
mov eax, dword [esp + 0x138]
and eax, 2
cmp eax, 1
sbb ebx, ebx
and ebx, 0xfffffffb
inc ebx
mov dword [ebp], 3
jmp 0x413d37
inc dword [esp + 0x20]
mov eax, dword [esp + 0x20]
movzx eax, byte [eax - 1]
xor edx, edx
mov cl, byte [esp + 0x14]
shld edx, eax, cl
shl eax, cl
xor ebx, ebx
test cl, 0x20
cmovne edx, eax
cmovne eax, ebx
or eax, esi
or edx, edi
mov esi, eax
mov edi, edx
add dword [esp + 0x14], 8
cmp dword [esp + 0x14], 2
jbe 0x412573
mov eax, esi
and eax, 7
mov dword [ebp + 0x14], eax
shrd esi, edi, 3
shr edi, 3
sub dword [esp + 0x14], 3
shr eax, 1
mov dword [ebp + 0x18], eax
jne 0x41297b
jmp 0x412661
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x40]
cmp dword [esp + 0x20], edx
jb 0x412632
mov eax, dword [esp + 0x138]
and eax, 2
cmp eax, 1
sbb ebx, ebx
and ebx, 0xfffffffb
inc ebx
mov dword [ebp], 5
jmp 0x413d37
inc dword [esp + 0x20]
mov eax, dword [esp + 0x20]
movzx eax, byte [eax - 1]
xor edx, edx
mov cl, byte [esp + 0x14]
shld edx, eax, cl
shl eax, cl
xor ebx, ebx
test cl, 0x20
cmovne edx, eax
cmovne eax, ebx
or eax, esi
or edx, edi
mov esi, eax
mov edi, edx
add dword [esp + 0x14], 8
mov eax, dword [esp + 0x14]
and eax, 7
cmp eax, dword [esp + 0x14]
ja 0x412609
mov ecx, dword [esp + 0x14]
and ecx, 7
shrd esi, edi, cl
shr edi, cl
xor eax, eax
test cl, 0x20
cmovne esi, edi
cmovne edi, eax
and dword [esp + 0x14], 0xfffffff8
mov dword [esp + 0x18], 0
cmp dword [esp + 0x14], 0
je 0x412745
jmp 0x41270d
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x40]
cmp dword [esp + 0x20], edx
jb 0x4126de
mov eax, dword [esp + 0x138]
and eax, 2
cmp eax, 1
sbb ebx, ebx
and ebx, 0xfffffffb
inc ebx
mov dword [ebp], 6
jmp 0x413d37
inc dword [esp + 0x20]
mov eax, dword [esp + 0x20]
movzx eax, byte [eax - 1]
xor edx, edx
mov cl, byte [esp + 0x14]
shld edx, eax, cl
shl eax, cl
xor ebx, ebx
test cl, 0x20
cmovne edx, eax
cmovne eax, ebx
or eax, esi
or edx, edi
mov esi, eax
mov edi, edx
add dword [esp + 0x14], 8
cmp dword [esp + 0x14], 7
jbe 0x4126b5
mov edx, dword [esp + 0x18]
mov eax, esi
mov byte [ebp + edx + 0x2924], al
shrd esi, edi, 8
shr edi, 8
sub dword [esp + 0x14], 8
jmp 0x412788
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x40]
cmp dword [esp + 0x20], edx
jb 0x41276e
mov eax, dword [esp + 0x138]
and eax, 2
cmp eax, 1
sbb ebx, ebx
and ebx, 0xfffffffb
inc ebx
mov dword [ebp], 7
jmp 0x413d37
mov eax, dword [esp + 0x20]
mov al, byte [eax]
mov edx, dword [esp + 0x18]
mov byte [ebp + edx + 0x2924], al
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
inc dword [esp + 0x18]
cmp dword [esp + 0x18], 3
jbe 0x412692
movzx eax, word [ebp + 0x2924]
mov edx, eax
mov dword [esp + 0x18], eax
mov ax, word [ebp + 0x2926]
not eax
cmp dx, ax
je 0x4128a4
jmp 0x4127ce
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov dword [ebp], 0x27
jmp 0x413d34
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x40]
cmp dword [esp + 0x20], edx
jb 0x412819
mov eax, dword [esp + 0x138]
and eax, 2
cmp eax, 1
sbb ebx, ebx
and ebx, 0xfffffffb
inc ebx
mov dword [ebp], 0x33
jmp 0x413d37
inc dword [esp + 0x20]
mov eax, dword [esp + 0x20]
movzx eax, byte [eax - 1]
xor edx, edx
mov cl, byte [esp + 0x14]
shld edx, eax, cl
shl eax, cl
xor ebx, ebx
test cl, 0x20
cmovne edx, eax
cmovne eax, ebx
or eax, esi
or edx, edi
mov esi, eax
mov edi, edx
add dword [esp + 0x14], 8
cmp dword [esp + 0x14], 7
jbe 0x4127f0
mov eax, esi
movzx eax, al
mov dword [esp + 0x30], eax
shrd esi, edi, 8
shr edi, 8
sub dword [esp + 0x14], 8
jmp 0x41287c
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x4c]
cmp dword [esp + 0x24], edx
jb 0x41288f
mov dword [ebp], 0x34
jmp 0x4128e2
mov edx, dword [esp + 0x24]
mov al, byte [esp + 0x30]
mov byte [edx], al
dec dword [esp + 0x18]
mov eax, edx
inc eax
mov dword [esp + 0x24], eax
cmp dword [esp + 0x18], 0
je 0x41296b
cmp dword [esp + 0x14], 0
jne 0x412848
jmp 0x41296b
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x4c]
cmp dword [esp + 0x24], edx
jb 0x412902
mov dword [ebp], 9
mov ebx, 2
jmp 0x413d37
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x40]
cmp dword [esp + 0x20], edx
jb 0x41292b
mov eax, dword [esp + 0x138]
and eax, 2
cmp eax, 1
sbb ebx, ebx
and ebx, 0xfffffffb
inc ebx
mov dword [ebp], 0x26
jmp 0x413d37
mov ebx, edx
sub ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x24]
cmp ebx, eax
cmova ebx, eax
cmp ebx, dword [esp + 0x18]
cmova ebx, dword [esp + 0x18]
mov dword [esp + 8], ebx
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
add dword [esp + 0x20], ebx
add dword [esp + 0x24], ebx
sub dword [esp + 0x18], ebx
cmp dword [esp + 0x18], 0
jne 0x4128d1
jmp 0x413af3
cmp eax, 3
jne 0x4129a4
jmp 0x412998
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov dword [ebp], 0xa
jmp 0x413d34
dec eax
jne 0x412a0e
mov dword [ebp + 0x2c], 0x120
mov dword [ebp + 0x30], 0x20
mov dword [esp + 8], 0x20
mov dword [esp + 4], 5
lea eax, [ebp + 0xde4]
mov dword [esp], eax
call sub.msvcrt.dll_memset
xor eax, eax
mov byte [ebp + eax + 0x44], 8
inc eax
cmp eax, 0x90
jne 0x4129d5
mov byte [ebp + eax + 0x44], 9
inc eax
cmp eax, 0x100
jne 0x4129e2
mov byte [ebp + eax + 0x44], 7
inc eax
cmp eax, 0x118
jne 0x4129ef
mov byte [ebp + eax + 0x44], 8
inc eax
cmp eax, 0x120
jne 0x4129fc
jmp 0x412f95
mov dword [esp + 0x18], 0
jmp 0x412a86
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x40]
cmp dword [esp + 0x20], ecx
jb 0x412a57
mov eax, dword [esp + 0x138]
and eax, 2
cmp eax, 1
sbb ebx, ebx
and ebx, 0xfffffffb
inc ebx
mov dword [ebp], 0xb
jmp 0x413d37
inc dword [esp + 0x20]
mov eax, dword [esp + 0x20]
movzx eax, byte [eax - 1]
xor edx, edx
mov cl, byte [esp + 0x14]
shld edx, eax, cl
shl eax, cl
xor ebx, ebx
test cl, 0x20
cmovne edx, eax
cmovne eax, ebx
or eax, esi
or edx, edi
mov esi, eax
mov edi, edx
add dword [esp + 0x14], 8
mov eax, dword [esp + 0x18]
movsx eax, byte [eax + 0x417043]
cmp eax, dword [esp + 0x14]
ja 0x412a2e
mov eax, dword [esp + 0x18]
movsx edx, byte [eax + 0x417043]
mov ecx, edx
mov eax, 1
shl eax, cl
dec eax
and eax, esi
shrd esi, edi, cl
shr edi, cl
xor ebx, ebx
test dl, 0x20
cmovne esi, edi
cmovne edi, ebx
sub dword [esp + 0x14], edx
mov ecx, dword [esp + 0x18]
add eax, dword [ecx*4 + 0x418380]
mov dword [ebp + ecx*4 + 0x2c], eax
inc dword [esp + 0x18]
cmp dword [esp + 0x18], 2
jbe 0x412a86
mov dword [esp + 8], 0x120
mov dword [esp + 4], 0
lea eax, [ebp + 0x1b84]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [esp + 0x18], 0
jmp 0x412ba3
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x40]
cmp dword [esp + 0x20], ecx
jb 0x412b46
mov eax, dword [esp + 0x138]
and eax, 2
cmp eax, 1
sbb ebx, ebx
and ebx, 0xfffffffb
inc ebx
mov dword [ebp], 0xe
jmp 0x413d37
inc dword [esp + 0x20]
mov eax, dword [esp + 0x20]
movzx eax, byte [eax - 1]
xor edx, edx
mov cl, byte [esp + 0x14]
shld edx, eax, cl
shl eax, cl
xor ebx, ebx
test cl, 0x20
cmovne edx, eax
cmovne eax, ebx
or eax, esi
or edx, edi
mov esi, eax
mov edi, edx
add dword [esp + 0x14], 8
cmp dword [esp + 0x14], 2
jbe 0x412b1d
mov edx, esi
and edx, 7
shrd esi, edi, 3
shr edi, 3
sub dword [esp + 0x14], 3
mov eax, dword [esp + 0x18]
movzx eax, byte [eax + 0x4187e0]
mov byte [ebp + eax + 0x1b84], dl
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
cmp dword [ebp + 0x34], eax
ja 0x412b75
mov dword [ebp + 0x34], 0x13
jmp 0x412f95
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov dword [ebp], 0x23
jmp 0x413d34
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x40]
cmp dword [esp + 0x20], ecx
jb 0x412c19
mov eax, dword [esp + 0x138]
and eax, 2
cmp eax, 1
sbb ebx, ebx
and ebx, 0xfffffffb
inc ebx
mov dword [ebp], 0x10
jmp 0x413d37
mov eax, dword [esp + 0x20]
lea ebx, [eax + 1]
movzx eax, byte [eax]
xor edx, edx
mov cl, byte [esp + 0x14]
shld edx, eax, cl
shl eax, cl
test cl, 0x20
je 0x412c37
mov edx, eax
xor eax, eax
mov ecx, edx
or eax, esi
mov edx, ecx
or edx, edi
mov esi, eax
mov edi, edx
add dword [esp + 0x14], 8
cmp dword [esp + 0x14], 0xe
mov dword [esp + 0x20], ebx
ja 0x412d59
mov eax, esi
and eax, 0x3ff
movsx ebx, word [ebp + eax*2 + 0x1ca4]
test ebx, ebx
js 0x412c7e
sar ebx, 9
je 0x412bf0
cmp dword [esp + 0x14], ebx
jae 0x412d59
jmp 0x412bf0
cmp dword [esp + 0x14], 0xa
jbe 0x412bf0
mov ecx, 0xa
lea eax, [ecx + 1]
mov dword [esp + 0x38], eax
mov eax, esi
mov edx, edi
shrd eax, edx, cl
shr edx, cl
test cl, 0x20
je 0x412ca7
mov eax, edx
xor edx, edx
and eax, 1
sub eax, ebx
movsx ebx, word [ebp + eax*2 + 0x24a2]
test ebx, ebx
jns 0x412d59
lea eax, [ecx + 2]
mov ecx, dword [esp + 0x38]
cmp dword [esp + 0x14], eax
jae 0x412c8e
jmp 0x412bf0
mov ecx, 0xa
lea eax, [ecx + 1]
mov dword [esp + 0x38], eax
mov eax, esi
mov edx, edi
shrd eax, edx, cl
shr edx, cl
test cl, 0x20
je 0x412cec
mov eax, edx
xor edx, edx
and eax, 1
sub eax, ebx
movsx ebx, word [ebp + eax*2 + 0x24a2]
mov ecx, dword [esp + 0x38]
test ebx, ebx
js 0x412cd3
mov dword [esp + 0x30], ebx
mov cl, byte [esp + 0x38]
shrd esi, edi, cl
shr edi, cl
xor eax, eax
test cl, 0x20
cmovne esi, edi
cmovne edi, eax
mov ecx, dword [esp + 0x38]
sub dword [esp + 0x14], ecx
cmp ebx, 0xf
jg 0x412d86
mov ebx, dword [esp + 0x18]
mov al, byte [esp + 0x30]
mov byte [ebp + ebx + 0x2928], al
mov eax, ebx
inc eax
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x2c]
mov edx, dword [ebp + 0x30]
add edx, eax
cmp edx, dword [esp + 0x18]
jbe 0x412f37
cmp dword [esp + 0x14], 0xe
jbe 0x412ebb
mov eax, esi
and eax, 0x3ff
movsx ebx, word [ebp + eax*2 + 0x1ca4]
mov eax, ebx
test ebx, ebx
js 0x412cce
sar ebx, 9
mov dword [esp + 0x38], ebx
mov ebx, eax
and ebx, 0x1ff
jmp 0x412d01
cmp dword [esp + 0x30], 0x10
jne 0x412dc8
cmp dword [esp + 0x18], 0
jne 0x412dc8
mov dword [esp + 0x18], 0
mov dword [esp + 0x30], 0x10
jmp 0x412dbc
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov dword [ebp], 0x11
jmp 0x413d34
movsx eax, byte [ebx + 0x417028]
mov dword [esp + 0x28], eax
cmp dword [esp + 0x14], eax
jmp 0x412e4f
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x40]
cmp dword [esp + 0x20], ecx
jb 0x412e18
mov eax, dword [esp + 0x138]
and eax, 2
cmp eax, 1
sbb ebx, ebx
and ebx, 0xfffffffb
inc ebx
mov dword [ebp], 0x12
jmp 0x413d37
inc dword [esp + 0x20]
mov eax, dword [esp + 0x20]
movzx eax, byte [eax - 1]
xor edx, edx
mov cl, byte [esp + 0x14]
shld edx, eax, cl
shl eax, cl
xor ebx, ebx
test cl, 0x20
cmovne edx, eax
cmovne eax, ebx
or eax, esi
or edx, edi
mov esi, eax
mov edi, edx
add dword [esp + 0x14], 8
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x28]
jb 0x412def
mov eax, 1
mov cl, byte [esp + 0x28]
shl eax, cl
dec eax
and eax, esi
shrd esi, edi, cl
shr edi, cl
xor edx, edx
test cl, 0x20
cmovne esi, edi
cmovne edi, edx
mov ecx, dword [esp + 0x28]
sub dword [esp + 0x14], ecx
mov edx, dword [esp + 0x30]
movsx ebx, byte [edx + 0x417037]
add ebx, eax
xor eax, eax
cmp edx, 0x10
jne 0x412e97
mov eax, dword [esp + 0x18]
movzx eax, byte [ebp + eax + 0x2927]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x18]
lea eax, [ebp + eax + 0x2928]
mov dword [esp], eax
call sub.msvcrt.dll_memset
add dword [esp + 0x18], ebx
jmp 0x412d3c
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x20]
dec eax
jle 0x412c57
mov eax, dword [esp + 0x20]
movzx eax, byte [eax + 1]
xor edx, edx
mov ebx, dword [esp + 0x14]
lea ecx, [ebx + 8]
shld edx, eax, cl
shl eax, cl
xor ebx, ebx
test cl, 0x20
cmovne edx, eax
cmovne eax, ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x20]
movzx eax, byte [eax]
xor edx, edx
mov cl, byte [esp + 0x14]
shld edx, eax, cl
shl eax, cl
xor ebx, ebx
test cl, 0x20
cmovne edx, eax
cmovne eax, ebx
mov ecx, eax
mov ebx, edx
mov eax, dword [esp + 0x30]
or eax, ecx
mov edx, dword [esp + 0x34]
or edx, ebx
or eax, esi
or edx, edi
mov esi, eax
mov edi, edx
add dword [esp + 0x20], 2
add dword [esp + 0x14], 0x10
jmp 0x412d59
jne 0x412f51
jmp 0x412f5d
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov dword [ebp], 0x15
jmp 0x413d34
lea ebx, [ebp + 0x2928]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
lea eax, [ebp + 0x44]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0x30]
mov dword [esp + 8], eax
add ebx, dword [ebp + 0x2c]
mov dword [esp + 4], ebx
lea eax, [ebp + 0xde4]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
dec dword [ebp + 0x18]
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x58], eax
test eax, eax
js 0x4131f1
mov dword [esp + 8], 0x40
mov dword [esp + 4], 0
lea eax, [esp + 0x7c]
mov dword [esp], eax
call sub.msvcrt.dll_memset
imul ebx, dword [esp + 0x58], 0xda0
mov dword [esp + 8], 0x800
mov dword [esp + 4], 0
lea eax, [ebp + ebx + 0x164]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [esp + 8], 0x480
mov dword [esp + 4], 0
lea eax, [ebp + ebx + 0x964]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x68], eax
mov edx, dword [ebp + eax*4 + 0x2c]
lea eax, [ebp + ebx]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x54], 0
cmp edx, dword [esp + 0x54]
je 0x41303e
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x54]
movzx eax, byte [eax + ecx + 0x44]
inc dword [esp + eax*4 + 0x7c]
inc dword [esp + 0x54]
jmp 0x413021
mov dword [esp + 0xc0], 0
mov dword [esp + 0xbc], 0
xor eax, eax
xor ecx, ecx
mov edx, 1
mov ebx, dword [esp + edx*4 + 0x7c]
add ecx, ebx
add eax, ebx
add eax, eax
inc edx
mov dword [esp + edx*4 + 0xbc], eax
cmp edx, 0x10
jne 0x41305d
cmp eax, 0x10000
je 0x413084
cmp ecx, 1
ja 0x412bce
mov dword [esp + 0x44], 0
mov dword [esp + 0x38], 0xffffffff
imul eax, dword [esp + 0x58], 0x6d0
mov dword [esp + 0x60], eax
mov ebx, dword [esp + 0x44]
cmp dword [esp + 0x54], ebx
je 0x4131c8
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x44]
movzx ebx, byte [eax + edx + 0x44]
mov byte [esp + 0x58], bl
test ebx, ebx
je 0x4131bf
mov ecx, dword [esp + ebx*4 + 0xbc]
lea eax, [ecx + 1]
mov dword [esp + ebx*4 + 0xbc], eax
mov dword [esp + 0x6c], ebx
xor eax, eax
add eax, eax
mov edx, ecx
and edx, 1
or eax, edx
shr ecx, 1
dec dword [esp + 0x6c]
jne 0x4130de
cmp ebx, 0xa
ja 0x413127
mov ebx, dword [esp + 0x58]
shl ebx, 9
or ebx, dword [esp + 0x44]
mov edx, 1
mov cl, byte [esp + 0x58]
shl edx, cl
mov ecx, edx
cmp eax, 0x3ff
ja 0x4131bf
mov edx, dword [esp + 0x5c]
mov word [edx + eax*2 + 0x164], bx
add eax, ecx
jmp 0x41310c
mov ecx, eax
and ecx, 0x3ff
add ecx, dword [esp + 0x60]
add ecx, ecx
add ecx, ebp
mov edx, ecx
movsx ecx, word [ecx + 0x164]
test ecx, ecx
jne 0x41315e
mov ecx, edx
mov edx, dword [esp + 0x38]
mov word [ecx + 0x164], dx
mov ecx, dword [esp + 0x38]
mov edx, ecx
sub edx, 2
mov dword [esp + 0x38], edx
shr eax, 9
mov edx, eax
mov eax, edx
shr eax, 1
mov edx, eax
and eax, 1
sub ecx, eax
not ecx
cmp ebx, 0xb
je 0x4131ab
add ecx, dword [esp + 0x60]
add ecx, ecx
lea eax, [ebp + ecx]
movsx ecx, word [eax + 0x964]
cmp word [eax + 0x964], 0
jne 0x4131a8
mov ecx, dword [esp + 0x38]
mov word [eax + 0x964], cx
mov ecx, dword [esp + 0x38]
mov eax, ecx
sub eax, 2
mov dword [esp + 0x38], eax
dec ebx
jmp 0x413163
mov eax, dword [esp + 0x60]
lea eax, [ecx + eax + 0x4b0]
mov ebx, dword [esp + 0x44]
mov word [ebp + eax*2 + 4], bx
inc dword [esp + 0x44]
jmp 0x4130a0
cmp dword [esp + 0x68], 2
jne 0x412f92
mov dword [esp + 0x18], 0
jmp 0x412d3c
mov edx, dword [esp + 0x24]
mov al, byte [esp + 0x18]
mov byte [edx], al
mov eax, edx
inc eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x20]
cmp eax, 3
jle 0x413212
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x24]
dec eax
jg 0x413436
jmp 0x413310
cmp dword [esp + 0x14], 0xe
ja 0x41337f
dec eax
jg 0x413317
mov eax, esi
and eax, 0x3ff
movsx ebx, word [ebp + eax*2 + 0x164]
test ebx, ebx
js 0x413248
sar ebx, 9
je 0x4132a7
cmp dword [esp + 0x14], ebx
jae 0x41337f
jmp 0x4132a7
cmp dword [esp + 0x14], 0xa
jbe 0x4132a7
mov ecx, 0xa
lea eax, [ecx + 1]
mov dword [esp + 0x38], eax
mov eax, esi
mov edx, edi
shrd eax, edx, cl
shr edx, cl
test cl, 0x20
je 0x41326d
mov eax, edx
xor edx, edx
and eax, 1
sub eax, ebx
movsx ebx, word [ebp + eax*2 + 0x962]
test ebx, ebx
jns 0x41337f
lea eax, [ecx + 2]
mov ecx, dword [esp + 0x38]
cmp dword [esp + 0x14], eax
jae 0x413254
jmp 0x4132a7
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x40]
cmp dword [esp + 0x20], ecx
jb 0x4132d0
mov eax, dword [esp + 0x138]
and eax, 2
cmp eax, 1
sbb ebx, ebx
and ebx, 0xfffffffb
inc ebx
mov dword [ebp], 0x17
jmp 0x413d37
mov eax, dword [esp + 0x20]
lea ebx, [eax + 1]
movzx eax, byte [eax]
xor edx, edx
mov cl, byte [esp + 0x14]
shld edx, eax, cl
shl eax, cl
test cl, 0x20
je 0x4132ee
mov edx, eax
xor eax, eax
mov ecx, edx
or eax, esi
mov edx, ecx
or edx, edi
mov esi, eax
mov edi, edx
add dword [esp + 0x14], 8
cmp dword [esp + 0x14], 0xe
mov dword [esp + 0x20], ebx
jbe 0x413224
jmp 0x41337f
cmp dword [esp + 0x14], 0xe
ja 0x41337f
mov eax, dword [esp + 0x20]
movzx eax, byte [eax + 1]
xor edx, edx
mov ebx, dword [esp + 0x14]
lea ecx, [ebx + 8]
shld edx, eax, cl
shl eax, cl
xor ebx, ebx
test cl, 0x20
cmovne edx, eax
cmovne eax, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x20]
movzx eax, byte [eax]
xor edx, edx
mov cl, byte [esp + 0x14]
shld edx, eax, cl
shl eax, cl
xor ebx, ebx
test cl, 0x20
cmovne edx, eax
cmovne eax, ebx
mov ecx, eax
mov ebx, edx
mov eax, dword [esp + 0x18]
or eax, ecx
mov edx, dword [esp + 0x1c]
or edx, ebx
or eax, esi
or edx, edi
mov esi, eax
mov edi, edx
add dword [esp + 0x20], 2
add dword [esp + 0x14], 0x10
mov eax, esi
and eax, 0x3ff
movsx ebx, word [ebp + eax*2 + 0x164]
mov eax, ebx
test ebx, ebx
js 0x4133a5
sar ebx, 9
mov dword [esp + 0x38], ebx
mov ebx, eax
and ebx, 0x1ff
jmp 0x4133d8
mov ecx, 0xa
lea eax, [ecx + 1]
mov dword [esp + 0x38], eax
mov eax, esi
mov edx, edi
shrd eax, edx, cl
shr edx, cl
test cl, 0x20
je 0x4133c3
mov eax, edx
xor edx, edx
and eax, 1
sub eax, ebx
movsx ebx, word [ebp + eax*2 + 0x962]
mov ecx, dword [esp + 0x38]
test ebx, ebx
js 0x4133aa
mov dword [esp + 0x18], ebx
mov cl, byte [esp + 0x38]
shrd esi, edi, cl
shr edi, cl
xor eax, eax
test cl, 0x20
cmovne esi, edi
cmovne edi, eax
mov ecx, dword [esp + 0x38]
sub dword [esp + 0x14], ecx
cmp ebx, 0xff
jg 0x413588
jmp 0x41341c
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov ebx, dword [esp + 0x4c]
cmp dword [esp + 0x24], ebx
jb 0x4131e0
mov dword [ebp], 0x18
jmp 0x4128e2
cmp dword [esp + 0x14], 0x1d
ja 0x41346b
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
xor edx, edx
mov cl, byte [esp + 0x14]
shld edx, eax, cl
shl eax, cl
xor ebx, ebx
test cl, 0x20
cmovne edx, eax
cmovne eax, ebx
or eax, esi
or edx, edi
mov esi, eax
mov edi, edx
add dword [esp + 0x20], 4
add dword [esp + 0x14], 0x20
mov eax, esi
and eax, 0x3ff
movsx eax, word [ebp + eax*2 + 0x164]
mov dword [esp + 0x38], eax
test eax, eax
js 0x413489
sar eax, 9
mov ebx, eax
jmp 0x4134c0
mov ecx, 0xa
lea ebx, [ecx + 1]
mov eax, esi
mov edx, edi
shrd eax, edx, cl
shr edx, cl
test cl, 0x20
je 0x4134a3
mov eax, edx
xor edx, edx
mov ecx, eax
and ecx, 1
mov edx, ecx
sub edx, dword [esp + 0x38]
movsx eax, word [ebp + edx*2 + 0x962]
mov dword [esp + 0x38], eax
mov ecx, ebx
test eax, eax
js 0x41348e
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], eax
mov ecx, ebx
shrd esi, edi, cl
shr edi, cl
xor edx, edx
test bl, 0x20
cmovne esi, edi
cmovne edi, edx
sub dword [esp + 0x14], ebx
bt eax, 8
jb 0x413588
mov eax, esi
and eax, 0x3ff
movsx eax, word [ebp + eax*2 + 0x164]
mov dword [esp + 0x44], eax
test eax, eax
js 0x413506
mov ebx, eax
sar ebx, 9
jmp 0x41353d
mov ecx, 0xa
lea ebx, [ecx + 1]
mov eax, esi
mov edx, edi
shrd eax, edx, cl
shr edx, cl
test cl, 0x20
je 0x413520
mov eax, edx
xor edx, edx
mov ecx, eax
and ecx, 1
mov eax, ecx
sub eax, dword [esp + 0x44]
movsx eax, word [ebp + eax*2 + 0x962]
mov dword [esp + 0x44], eax
mov ecx, ebx
test eax, eax
js 0x41350b
mov ecx, ebx
shrd esi, edi, cl
shr edi, cl
xor eax, eax
test bl, 0x20
cmovne esi, edi
cmovne edi, eax
sub dword [esp + 0x14], ebx
mov eax, dword [esp + 0x24]
mov dl, byte [esp + 0x38]
mov byte [eax], dl
bt dword [esp + 0x44], 8
jae 0x413573
inc dword [esp + 0x24]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x18], eax
jmp 0x413588
mov eax, dword [esp + 0x24]
mov dl, byte [esp + 0x44]
mov byte [eax + 1], dl
add dword [esp + 0x24], 2
jmp 0x4131f1
and dword [esp + 0x18], 0x1ff
cmp dword [esp + 0x18], 0x100
je 0x413af3
mov ebx, dword [esp + 0x18]
sub ebx, 0x101
mov eax, dword [ebx*4 + 0x418300]
mov dword [esp + 0x28], eax
mov eax, dword [ebx*4 + 0x418280]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x28], 0
je 0x413675
mov ecx, dword [esp + 0x28]
cmp dword [esp + 0x14], ecx
jmp 0x413649
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov ebx, dword [esp + 0x40]
cmp dword [esp + 0x20], ebx
jb 0x413612
mov eax, dword [esp + 0x138]
and eax, 2
cmp eax, 1
sbb ebx, ebx
and ebx, 0xfffffffb
inc ebx
mov dword [ebp], 0x19
jmp 0x413d37
inc dword [esp + 0x20]
mov eax, dword [esp + 0x20]
movzx eax, byte [eax - 1]
xor edx, edx
mov cl, byte [esp + 0x14]
shld edx, eax, cl
shl eax, cl
xor ebx, ebx
test cl, 0x20
cmovne edx, eax
cmovne eax, ebx
or eax, esi
or edx, edi
mov esi, eax
mov edi, edx
add dword [esp + 0x14], 8
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x28]
jb 0x4135e9
mov eax, 1
mov cl, byte [esp + 0x28]
shl eax, cl
dec eax
and eax, esi
shrd esi, edi, cl
shr edi, cl
xor edx, edx
test cl, 0x20
cmovne esi, edi
cmovne edi, edx
mov ecx, dword [esp + 0x28]
sub dword [esp + 0x14], ecx
add dword [esp + 0x18], eax
cmp dword [esp + 0x14], 0xe
ja 0x4137e3
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x20]
dec eax
jg 0x41377b
mov eax, esi
and eax, 0x3ff
movsx ebx, word [ebp + eax*2 + 0xf04]
test ebx, ebx
js 0x4136b3
sar ebx, 9
je 0x413712
cmp dword [esp + 0x14], ebx
jae 0x4137e3
jmp 0x413712
cmp dword [esp + 0x14], 0xa
jbe 0x413712
mov ecx, 0xa
lea eax, [ecx + 1]
mov dword [esp + 0x38], eax
mov eax, esi
mov edx, edi
shrd eax, edx, cl
shr edx, cl
test cl, 0x20
je 0x4136d8
mov eax, edx
xor edx, edx
and eax, 1
sub eax, ebx
movsx ebx, word [ebp + eax*2 + 0x1702]
test ebx, ebx
jns 0x4137e3
lea eax, [ecx + 2]
mov ecx, dword [esp + 0x38]
cmp dword [esp + 0x14], eax
jae 0x4136bf
jmp 0x413712
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x40]
cmp dword [esp + 0x20], ecx
jb 0x41373b
mov eax, dword [esp + 0x138]
and eax, 2
cmp eax, 1
sbb ebx, ebx
and ebx, 0xfffffffb
inc ebx
mov dword [ebp], 0x1a
jmp 0x413d37
mov eax, dword [esp + 0x20]
lea ebx, [eax + 1]
movzx eax, byte [eax]
xor edx, edx
mov cl, byte [esp + 0x14]
shld edx, eax, cl
shl eax, cl
test cl, 0x20
je 0x413759
mov edx, eax
xor eax, eax
mov ecx, edx
or eax, esi
mov edx, ecx
or edx, edi
mov esi, eax
mov edi, edx
add dword [esp + 0x14], 8
cmp dword [esp + 0x14], 0xe
mov dword [esp + 0x20], ebx
jbe 0x41368f
jmp 0x4137e3
mov eax, dword [esp + 0x20]
movzx eax, byte [eax + 1]
xor edx, edx
mov ebx, dword [esp + 0x14]
lea ecx, [ebx + 8]
shld edx, eax, cl
shl eax, cl
xor ebx, ebx
test cl, 0x20
cmovne edx, eax
cmovne eax, ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x20]
movzx eax, byte [eax]
xor edx, edx
mov cl, byte [esp + 0x14]
shld edx, eax, cl
shl eax, cl
xor ebx, ebx
test cl, 0x20
cmovne edx, eax
cmovne eax, ebx
mov ecx, eax
mov ebx, edx
mov eax, dword [esp + 0x28]
or eax, ecx
mov edx, dword [esp + 0x2c]
or edx, ebx
or eax, esi
or edx, edi
mov esi, eax
mov edi, edx
add dword [esp + 0x20], 2
add dword [esp + 0x14], 0x10
mov eax, esi
and eax, 0x3ff
movsx ebx, word [ebp + eax*2 + 0xf04]
mov eax, ebx
test ebx, ebx
js 0x413809
sar ebx, 9
mov dword [esp + 0x28], ebx
mov ebx, eax
and ebx, 0x1ff
jmp 0x41383c
mov ecx, 0xa
lea eax, [ecx + 1]
mov dword [esp + 0x28], eax
mov eax, esi
mov edx, edi
shrd eax, edx, cl
shr edx, cl
test cl, 0x20
je 0x413827
mov eax, edx
xor edx, edx
and eax, 1
sub eax, ebx
movsx ebx, word [ebp + eax*2 + 0x1702]
mov ecx, dword [esp + 0x28]
test ebx, ebx
js 0x41380e
mov cl, byte [esp + 0x28]
shrd esi, edi, cl
shr edi, cl
xor eax, eax
test cl, 0x20
cmovne esi, edi
cmovne edi, eax
mov edx, dword [esp + 0x28]
sub dword [esp + 0x14], edx
mov eax, dword [ebx*4 + 0x418200]
mov dword [esp + 0x28], eax
mov eax, dword [ebx*4 + 0x418180]
mov dword [esp + 0x30], eax
cmp dword [esp + 0x28], 0
je 0x413925
mov ecx, dword [esp + 0x28]
cmp dword [esp + 0x14], ecx
jmp 0x4138f9
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov ebx, dword [esp + 0x40]
cmp dword [esp + 0x20], ebx
jb 0x4138c2
mov eax, dword [esp + 0x138]
and eax, 2
cmp eax, 1
sbb ebx, ebx
and ebx, 0xfffffffb
inc ebx
mov dword [ebp], 0x1b
jmp 0x413d37
inc dword [esp + 0x20]
mov eax, dword [esp + 0x20]
movzx eax, byte [eax - 1]
xor edx, edx
mov cl, byte [esp + 0x14]
shld edx, eax, cl
shl eax, cl
xor ebx, ebx
test cl, 0x20
cmovne edx, eax
cmovne eax, ebx
or eax, esi
or edx, edi
mov esi, eax
mov edi, edx
add dword [esp + 0x14], 8
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x28]
jb 0x413899
mov eax, 1
mov cl, byte [esp + 0x28]
shl eax, cl
dec eax
and eax, esi
shrd esi, edi, cl
shr edi, cl
xor edx, edx
test cl, 0x20
cmovne esi, edi
cmovne edi, edx
mov ecx, dword [esp + 0x28]
sub dword [esp + 0x14], ecx
add dword [esp + 0x30], eax
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x12c]
mov dword [esp + 0x48], eax
cmp dword [esp + 0x30], 0
sete dl
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x48]
seta al
or dl, al
je 0x41397a
cmp dword [esp + 0x64], 0
je 0x41397a
jmp 0x41396e
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov dword [ebp], 0x25
jmp 0x413d34
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x30]
and eax, dword [esp + 0x50]
add eax, dword [esp + 0x12c]
mov edx, eax
cmp dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
cmovb eax, edx
add eax, dword [esp + 0x18]
cmp dword [esp + 0x4c], eax
jb 0x413a02
jmp 0x413a1b
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov ebx, dword [esp + 0x4c]
cmp dword [esp + 0x24], ebx
jb 0x4139d2
mov dword [ebp], 0x35
jmp 0x4128e2
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x30]
and eax, dword [esp + 0x50]
mov edx, dword [esp + 0x12c]
mov al, byte [edx + eax]
mov ebx, dword [esp + 0x24]
mov byte [ebx], al
mov eax, dword [esp + 0x48]
inc eax
mov dword [esp + 0x48], eax
mov eax, ebx
inc eax
mov dword [esp + 0x24], eax
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x18], 0xffffffff
test ebx, ebx
je 0x4131f1
lea eax, [ebx - 1]
mov dword [esp + 0x18], eax
jmp 0x4139bc
cmp dword [esp + 0x18], 8
jbe 0x413a9c
mov ecx, dword [esp + 0x18]
cmp dword [esp + 0x30], ecx
jb 0x413a9c
mov eax, ecx
and eax, 0xfffffff8
add eax, edx
mov dword [esp + 0x38], eax
mov dword [esp + 8], 8
mov dword [esp + 4], edx
mov dword [esp + 0x44], edx
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
add dword [esp + 0x24], 8
mov edx, dword [esp + 0x44]
add edx, 8
cmp dword [esp + 0x38], edx
ja 0x413a37
and dword [esp + 0x18], 7
cmp dword [esp + 0x18], 2
ja 0x413a9c
cmp dword [esp + 0x18], 0
je 0x4131f1
mov al, byte [edx]
mov ecx, dword [esp + 0x24]
mov byte [ecx], al
and bl, 6
je 0x413a8f
mov al, byte [edx + 1]
mov byte [ecx + 1], al
mov ebx, dword [esp + 0x18]
add dword [esp + 0x24], ebx
jmp 0x4131f1
cmp dword [esp + 0x18], 2
jbe 0x413ac6
mov al, byte [edx]
mov ebx, dword [esp + 0x24]
mov byte [ebx], al
mov al, byte [edx + 1]
mov byte [ebx + 1], al
mov al, byte [edx + 2]
mov byte [ebx + 2], al
add dword [esp + 0x24], 3
add edx, 3
sub dword [esp + 0x18], 3
jmp 0x413a9c
cmp dword [esp + 0x18], 0
je 0x4131f1
mov al, byte [edx]
mov ecx, dword [esp + 0x24]
mov byte [ecx], al
cmp dword [esp + 0x18], 2
jne 0x413ae6
mov al, byte [edx + 1]
mov byte [ecx + 1], al
mov edx, dword [esp + 0x18]
add dword [esp + 0x24], edx
jmp 0x4131f1
test byte [ebp + 0x14], 1
je 0x4125cb
jmp 0x413b6d
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov ebx, dword [esp + 0x40]
cmp dword [esp + 0x20], ebx
jb 0x413b3e
mov eax, dword [esp + 0x138]
and eax, 2
cmp eax, 1
sbb ebx, ebx
and ebx, 0xfffffffb
inc ebx
mov dword [ebp], 0x20
jmp 0x413d37
inc dword [esp + 0x20]
mov eax, dword [esp + 0x20]
movzx eax, byte [eax - 1]
xor edx, edx
mov cl, byte [esp + 0x14]
shld edx, eax, cl
shl eax, cl
xor ebx, ebx
test cl, 0x20
cmovne edx, eax
cmovne eax, ebx
or eax, esi
or edx, edi
mov esi, eax
mov edi, edx
add dword [esp + 0x14], 8
mov eax, dword [esp + 0x14]
and eax, 7
cmp eax, dword [esp + 0x14]
ja 0x413b15
mov ecx, dword [esp + 0x14]
and ecx, 7
mov eax, esi
mov edx, edi
shrd eax, edi, cl
shr edx, cl
xor edi, edi
test cl, 0x20
cmovne eax, edx
cmovne edx, edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
and dword [esp + 0x14], 0xfffffff8
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x124]
jbe 0x413bc1
cmp dword [esp + 0x14], 7
jbe 0x413bc1
dec dword [esp + 0x20]
sub dword [esp + 0x14], 8
jmp 0x413ba2
mov cl, byte [esp + 0x14]
mov eax, 0xffffffff
mov edx, eax
shl eax, cl
xor esi, esi
test cl, 0x20
cmovne edx, eax
cmovne eax, esi
mov ecx, eax
not ecx
mov eax, edx
not eax
and ecx, dword [esp + 0x38]
mov esi, ecx
mov edx, dword [esp + 0x3c]
and edx, eax
mov edi, edx
test byte [esp + 0x138], 1
je 0x413d13
mov dword [esp + 0x18], 0
cmp dword [esp + 0x14], 0
je 0x413cb0
jmp 0x413c80
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x40]
cmp dword [esp + 0x20], ecx
jb 0x413c51
mov eax, dword [esp + 0x138]
and eax, 2
cmp eax, 1
sbb ebx, ebx
and ebx, 0xfffffffb
inc ebx
mov dword [ebp], 0x29
jmp 0x413d37
inc dword [esp + 0x20]
mov eax, dword [esp + 0x20]
movzx eax, byte [eax - 1]
xor edx, edx
mov cl, byte [esp + 0x14]
shld edx, eax, cl
shl eax, cl
xor ebx, ebx
test cl, 0x20
cmovne edx, eax
cmovne eax, ebx
or eax, esi
or edx, edi
mov esi, eax
mov edi, edx
add dword [esp + 0x14], 8
cmp dword [esp + 0x14], 7
jbe 0x413c28
mov eax, esi
movzx edx, al
shrd esi, edi, 8
shr edi, 8
sub dword [esp + 0x14], 8
jmp 0x413ce2
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov ebx, dword [esp + 0x40]
cmp dword [esp + 0x20], ebx
jb 0x413cd6
mov eax, dword [esp + 0x138]
and eax, 2
cmp eax, 1
sbb ebx, ebx
and ebx, 0xfffffffb
inc ebx
mov dword [ebp], 0x2a
jmp 0x413d37
mov eax, dword [esp + 0x20]
movzx edx, byte [eax]
inc eax
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x10]
shl eax, 8
or eax, edx
mov dword [ebp + 0x10], eax
inc dword [esp + 0x18]
cmp dword [esp + 0x18], 3
ja 0x413d13
jmp 0x413c05
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
mov dword [ebp], 0x22
xor ebx, ebx
jmp 0x413d37
mov eax, dword [esp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x20], eax
or ebx, 0xffffffff
cmp ebx, 1
je 0x413d60
cmp ebx, 0xfffffffc
je 0x413d60
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x124]
jbe 0x413d60
cmp dword [esp + 0x14], 7
jbe 0x413d60
dec dword [esp + 0x20]
sub dword [esp + 0x14], 8
jmp 0x413d41
mov eax, dword [esp + 0x14]
mov dword [ebp + 4], eax
mov cl, byte [esp + 0x14]
mov eax, 0xffffffff
mov edx, eax
shl eax, cl
test cl, 0x20
je 0x413d7d
mov edx, eax
xor eax, eax
mov ecx, eax
not ecx
mov eax, edx
not eax
and ecx, esi
mov dword [ebp + 0x38], ecx
and eax, edi
mov dword [ebp + 0x3c], eax
mov eax, dword [esp + 0x30]
mov dword [ebp + 0x20], eax
mov eax, dword [esp + 0x18]
mov dword [ebp + 0x24], eax
mov eax, dword [esp + 0x28]
mov dword [ebp + 0x28], eax
mov eax, dword [esp + 0x48]
mov dword [ebp + 0x40], eax
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x124]
mov edi, dword [esp + 0x128]
mov dword [edi], eax
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x130]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x134]
mov edi, dword [esp + 0x14]
mov dword [eax], edi
test byte [esp + 0x138], 9
je 0x413f0e
test ebx, ebx
js 0x413f0e
mov ecx, dword [ebp + 0x1c]
movzx edi, cx
shr ecx, 0x10
mov esi, 0x15b0
mov eax, dword [esp + 0x14]
xor edx, edx
div esi
mov esi, edx
cmp dword [esp + 0x14], 0
je 0x413eed
mov eax, dword [esp + 0x130]
mov edx, 7
sub edx, eax
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x20]
add edx, eax
cmp esi, edx
jbe 0x413e74
movzx edx, byte [eax]
add edi, edx
movzx edx, byte [eax + 1]
add edx, edi
add edi, edx
add ecx, edi
movzx edi, byte [eax + 2]
add edx, edi
add ecx, edx
movzx edi, byte [eax + 3]
add edx, edi
add ecx, edx
movzx edi, byte [eax + 4]
add edx, edi
add ecx, edx
movzx edi, byte [eax + 5]
add edi, edx
add ecx, edi
movzx edx, byte [eax + 6]
add edx, edi
add ecx, edx
movzx edi, byte [eax + 7]
add edi, edx
add ecx, edi
add eax, 8
jmp 0x413e26
mov edx, esi
and edx, 0x1ff8
mov eax, esi
and eax, 0xfffffff8
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x130]
add eax, edx
mov dword [esp + 0x130], eax
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x130]
mov edx, dword [esp + 0x130]
add edx, eax
cmp esi, edx
jbe 0x413ec5
inc dword [esp + 0x130]
mov edx, dword [esp + 0x130]
movzx edx, byte [edx - 1]
add edi, edx
add ecx, edi
jmp 0x413ea0
mov eax, edi
mov edi, 0xfff1
xor edx, edx
div edi
mov edi, edx
mov eax, ecx
mov ecx, 0xfff1
xor edx, edx
div ecx
mov ecx, edx
sub dword [esp + 0x14], esi
mov esi, 0x15b0
jmp 0x413e09
shl ecx, 0x10
add edi, ecx
mov dword [ebp + 0x1c], edi
test ebx, ebx
jne 0x413f0e
test byte [esp + 0x138], 1
je 0x413f0e
cmp edi, dword [ebp + 0x10]
mov eax, 0xfffffffe
cmovne ebx, eax
mov eax, ebx
add esp, 0x10c
pop ebx
pop esi
pop edi
pop ebp
ret