Function at 0x6c22f070
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x64
mov eax, dword [esp + 0x7c]
add eax, 3
shr eax, 2
mov dword [esp + 0x60], eax
je 0x6c22f442
mov esi, dword [esp + 0x78]
add esi, 3
shr esi, 2
mov dword [esp + 0x50], esi
shl esi, 4
mov dword [esp + 0x5c], esi
mov esi, dword [esp + 0x78]
shl esi, 4
mov eax, dword [esp + 0x5c]
sub esi, eax
mov dword [esp + 0x58], esi
mov eax, dword [esp + 0x84]
sub eax, dword [esp + 0x80]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], 0
mov esi, dword [esp + 0x78]
shl esi, 2
mov dword [esp + 0x44], esi
mov eax, dword [esp + 0x50]
test eax, eax
je 0x6c22f41d
mov esi, dword [esp + 0x80]
mov dword [esp + 0x14], esi
mov dword [esp + 0x40], 0
lea esi, [esi]
mov ebp, dword [esp + 0x40]
shl ebp, 2
mov eax, dword [esp + 0x14]
mov al, byte [eax]
mov byte [esp + 0x32], al
mov edx, dword [esp + 0x14]
mov dl, byte [edx + 1]
mov byte [esp + 0x33], dl
mov esi, dword [esp + 0x14]
movzx esi, byte [esi + 5]
shl esi, 8
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x14]
movzx eax, byte [esi + 6]
shl eax, 0x10
or dword [esp + 0x10], eax
movzx eax, byte [esi + 4]
or dword [esp + 0x10], eax
movzx eax, byte [esi + 7]
shl eax, 0x18
or dword [esp + 0x10], eax
movzx ebx, word [esi + 8]
mov eax, ebx
sar eax, 0xb
mov ecx, eax
shl ecx, 8
sub ecx, eax
add ecx, 0x10
mov dword [esp + 4], ecx
mov edx, ebx
and edx, 0x7e0
sar edx, 5
mov eax, edx
shl eax, 8
sub eax, edx
add eax, 0x20
mov dword [esp], eax
and ebx, 0x1f
mov ecx, ebx
shl ecx, 8
sub ecx, ebx
add ecx, 0x10
movzx esi, word [esi + 0xa]
mov eax, esi
sar eax, 0xb
mov ebx, eax
shl ebx, 8
sub ebx, eax
add ebx, 0x10
mov dword [esp + 0xc], ebx
mov edx, esi
and edx, 0x7e0
sar edx, 5
mov eax, edx
shl eax, 8
sub eax, edx
add eax, 0x20
mov dword [esp + 0x18], eax
and esi, 0x1f
mov ebx, esi
shl ebx, 8
sub ebx, esi
add ebx, 0x10
mov esi, dword [esp + 0x14]
mov esi, dword [esi + 0xc]
mov dword [esp + 8], esi
mov esi, dword [esp + 0x14]
movzx edx, byte [esi + 3]
shl edx, 8
movzx eax, byte [esi + 2]
or eax, edx
movzx eax, ax
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0x10]
shl esi, 1
and esi, 6
sar eax, 0xf
or esi, eax
mov dword [esp + 0x34], esi
movzx esi, byte [esp + 0x33]
mov dword [esp + 0x3c], esi
shl esi, 0x18
mov dword [esp + 0x48], esi
movzx esi, byte [esp + 0x32]
mov dword [esp + 0x38], esi
shl esi, 0x18
mov dword [esp + 0x24], esi
mov edi, ecx
shr edi, 5
add edi, ecx
shr edi, 5
and edi, 0xff
mov eax, dword [esp]
shr eax, 6
add eax, dword [esp]
shr eax, 6
movzx eax, al
mov dword [esp], eax
mov ecx, dword [esp + 4]
shr ecx, 5
add ecx, dword [esp + 4]
shr ecx, 5
movzx ecx, cl
mov esi, ecx
shl esi, 0x10
or esi, edi
shl eax, 8
or esi, eax
mov dword [esp + 0x28], esi
mov esi, ebx
shr esi, 5
add esi, ebx
shr esi, 5
and esi, 0xff
mov eax, dword [esp + 0x18]
shr eax, 6
add eax, dword [esp + 0x18]
shr eax, 6
movzx eax, al
mov dword [esp + 4], eax
mov ebx, dword [esp + 0xc]
shr ebx, 5
add ebx, dword [esp + 0xc]
shr ebx, 5
movzx ebx, bl
mov eax, ebx
shl eax, 0x10
or eax, esi
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 4]
shl eax, 8
or dword [esp + 0x2c], eax
lea edx, [ebx + ecx*2]
mov eax, 0x55555556
imul edx
movzx edx, dl
shl edx, 0x10
mov dword [esp + 0x18], edx
lea edx, [esi + edi*2]
mov eax, 0x55555556
imul edx
movzx edx, dl
or dword [esp + 0x18], edx
mov edx, dword [esp]
mov eax, dword [esp + 4]
lea edx, [eax + edx*2]
mov eax, 0x55555556
imul edx
movzx edx, dl
shl edx, 8
or dword [esp + 0x18], edx
lea edx, [ecx + ebx*2]
mov eax, 0x55555556
imul edx
movzx edx, dl
shl edx, 0x10
mov dword [esp + 0x1c], edx
lea edx, [edi + esi*2]
mov eax, 0x55555556
imul edx
movzx edx, dl
or dword [esp + 0x1c], edx
mov ecx, dword [esp + 4]
mov esi, dword [esp]
lea edx, [esi + ecx*2]
mov eax, 0x55555556
imul edx
movzx edx, dl
shl edx, 8
or dword [esp + 0x1c], edx
mov esi, dword [esp + 0x4c]
add esi, dword [esp + 0x14]
mov dword [esp], esi
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 4]
xor ebx, ebx
cmp esi, 0xc
jg 0x6c22f46c
mov eax, dword [esp + 0x20]
mov ecx, esi
sar eax, cl
and eax, 7
test eax, eax
je 0x6c22f44c
cmp eax, 1
je 0x6c22f4e0
mov dl, byte [esp + 0x33]
cmp byte [esp + 0x32], dl
jbe 0x6c22f49c
mov edx, 8
sub edx, eax
imul edx, dword [esp + 0x38]
lea ecx, [eax - 1]
imul ecx, dword [esp + 0x3c]
add ecx, edx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 2
sar ecx, 0x1f
sub dl, cl
shl edx, 0x18
mov eax, dword [esp + 8]
mov ecx, edi
shr eax, cl
and eax, 3
cmp al, 2
je 0x6c22f463
cmp al, 3
je 0x6c22f490
dec al
je 0x6c22f484
or edx, dword [esp + 0x28]
lea eax, [ebx + ebp]
cmp dword [esp + 0x78], eax
jbe 0x6c22f3da
mov eax, dword [esp]
mov dword [eax + ebx*4], edx
inc ebx
add esi, 3
add edi, 2
cmp ebx, 4
jne 0x6c22f347
mov esi, dword [esp + 0x44]
add dword [esp], esi
add dword [esp + 4], 0xc
add dword [esp + 0xc], 8
cmp dword [esp + 4], 0x30
jne 0x6c22f33d
inc dword [esp + 0x40]
add dword [esp + 0x14], 0x10
mov esi, dword [esp + 0x50]
cmp dword [esp + 0x40], esi
jne 0x6c22f0f8
mov esi, dword [esp + 0x5c]
add dword [esp + 0x80], esi
inc dword [esp + 0x54]
mov esi, dword [esp + 0x58]
add dword [esp + 0x4c], esi
mov esi, dword [esp + 0x60]
cmp dword [esp + 0x54], esi
jne 0x6c22f0d6
add esp, 0x64
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 8]
mov ecx, edi
shr eax, cl
and eax, 3
cmp al, 2
jne 0x6c22f3b7
or edx, dword [esp + 0x18]
jmp 0x6c22f3cb
cmp esi, 0xf
je 0x6c22f4d4
lea ecx, [esi - 0x10]
mov eax, dword [esp + 0x10]
shr eax, cl
and eax, 7
jmp 0x6c22f35b
or edx, dword [esp + 0x2c]
jmp 0x6c22f3cb
or edx, dword [esp + 0x1c]
jmp 0x6c22f3cb
cmp eax, 6
je 0x6c22f4ec
cmp eax, 7
je 0x6c22f4f4
mov edx, 6
sub edx, eax
imul edx, dword [esp + 0x38]
lea ecx, [eax - 1]
imul ecx, dword [esp + 0x3c]
add ecx, edx
mov eax, 0x66666667
imul ecx
sar edx, 1
sar ecx, 0x1f
sub dl, cl
shl edx, 0x18
jmp 0x6c22f3a4
mov eax, dword [esp + 0x34]
jmp 0x6c22f35b
mov edx, dword [esp + 0x48]
jmp 0x6c22f3a4
xor edx, edx
jmp 0x6c22f3a4
mov edx, 0xff000000
jmp 0x6c22f3a4