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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [esp + 0x78]
dec eax
cmp eax, 0x3f
ja 0x52fc58
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x78]
sar edx, 3
mov dword [esp + 0x24], edx
mov ebx, dword [esp + 0x78]
add ebx, 7
sar ebx, 3
mov ecx, dword [esp + 0x78]
and ecx, 7
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x84]
xor edx, edx
mov dl, byte [eax]
xor ecx, ecx
mov cl, byte [eax + 1]
shl ecx, 8
mov dword [esp + 0x20], ecx
mov ecx, eax
xor eax, eax
mov al, byte [ecx + 2]
shl eax, 0x10
or dword [esp + 0x20], eax
or dword [esp + 0x20], edx
xor eax, eax
mov al, byte [ecx + 3]
shl eax, 0x18
or dword [esp + 0x20], eax
xor edx, edx
mov dl, byte [ecx + 4]
mov al, byte [ecx + 5]
and eax, 0xff
mov esi, eax
shl esi, 8
xor eax, eax
mov al, byte [ecx + 6]
shl eax, 0x10
or esi, eax
or esi, edx
xor eax, eax
mov al, byte [ecx + 7]
shl eax, 0x18
or esi, eax
mov ecx, dword [esp + 0x88]
test ecx, ecx
jne 0x52fc60
cmp dword [esp + 0x7c], ebx
jb 0x52fc10
mov ecx, dword [esp + 0x7c]
sub ecx, ebx
mov dword [esp + 0x28], ecx
lea edx, [esp + 0x40]
add edx, dword [esp + 0x24]
mov dword [esp + 0x2c], edx
lea esi, [esi]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], esi
mov dword [esp + 8], 1
mov edx, dword [esp + 0x80]
mov dword [esp + 4], edx
lea ecx, [esp + 0x38]
mov dword [esp], ecx
call fcn.005315c0
mov eax, dword [esp + 0x70]
add eax, ebx
cmp ebx, 8
jbe switch.0x005300d0
xor ebp, ebp
xor edx, edx
nop
mov cl, byte [eax - 1]
and ecx, 0xff
mov edi, ecx
or edi, edx
lea eax, [eax + ebx - 1]
mov dword [esp + 0x70], eax
cmp dword [esp + 0x78], 0x20
je 0x5301b0
cmp dword [esp + 0x78], 0x40
je 0x5301e0
mov eax, dword [esp + 0x20]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], ebp
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x5301f0
mov eax, 8
sub eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dl, byte [esp + ecx + 0x41]
and edx, 0xff
mov esi, edx
mov cl, al
sar esi, cl
mov ecx, dword [esp + 0x24]
xor edx, edx
mov dl, byte [esp + ecx + 0x40]
mov cl, byte [esp + 0x1c]
shl edx, cl
or edx, esi
mov byte [esp + 0x40], dl
mov edx, dword [esp + 0x24]
mov cl, byte [esp + edx + 0x42]
inc edx
and ecx, 0xff
mov esi, ecx
mov cl, al
sar esi, cl
mov dl, byte [esp + edx + 0x40]
and edx, 0xff
mov cl, byte [esp + 0x1c]
shl edx, cl
or edx, esi
mov byte [esp + 0x41], dl
mov edx, dword [esp + 0x24]
mov cl, byte [esp + edx + 0x43]
add edx, 2
and ecx, 0xff
mov esi, ecx
mov cl, al
sar esi, cl
mov dl, byte [esp + edx + 0x40]
and edx, 0xff
mov cl, byte [esp + 0x1c]
shl edx, cl
or edx, esi
mov byte [esp + 0x42], dl
mov edx, dword [esp + 0x24]
mov cl, byte [esp + edx + 0x44]
add edx, 3
and ecx, 0xff
mov esi, ecx
mov cl, al
sar esi, cl
mov dl, byte [esp + edx + 0x40]
and edx, 0xff
mov cl, byte [esp + 0x1c]
shl edx, cl
or edx, esi
mov byte [esp + 0x43], dl
mov edx, dword [esp + 0x24]
mov cl, byte [esp + edx + 0x45]
add edx, 4
and ecx, 0xff
mov esi, ecx
mov cl, al
sar esi, cl
mov dl, byte [esp + edx + 0x40]
and edx, 0xff
mov cl, byte [esp + 0x1c]
shl edx, cl
or edx, esi
mov byte [esp + 0x44], dl
mov edx, dword [esp + 0x24]
mov cl, byte [esp + edx + 0x46]
add edx, 5
and ecx, 0xff
mov esi, ecx
mov cl, al
sar esi, cl
mov dl, byte [esp + edx + 0x40]
and edx, 0xff
mov cl, byte [esp + 0x1c]
shl edx, cl
or edx, esi
mov byte [esp + 0x45], dl
mov edx, dword [esp + 0x24]
mov cl, byte [esp + edx + 0x47]
add edx, 6
and ecx, 0xff
mov esi, ecx
mov cl, al
sar esi, cl
mov dl, byte [esp + edx + 0x40]
and edx, 0xff
mov cl, byte [esp + 0x1c]
shl edx, cl
or edx, esi
mov byte [esp + 0x46], dl
mov esi, dword [esp + 0x24]
xor edx, edx
mov dl, byte [esp + esi + 0x48]
mov cl, al
sar edx, cl
xor eax, eax
mov al, byte [esp + esi + 0x47]
mov cl, byte [esp + 0x1c]
shl eax, cl
or edx, eax
mov byte [esp + 0x47], dl
mov eax, dword [esp + 0x40]
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0x44]
xor edi, dword [esp + 0x38]
xor ebp, dword [esp + 0x3c]
mov eax, dword [esp + 0x74]
add eax, ebx
cmp ebx, 8
ja case.0x52fbfd.0
jmp dword [ebx*4 + 0x60a580]
mov cl, byte [esp + 0x20]
mov edx, dword [esp + 0x84]
mov byte [edx], cl
mov eax, dword [esp + 0x20]
shr eax, 8
mov byte [edx + 1], al
mov eax, dword [esp + 0x20]
shr eax, 0x10
mov byte [edx + 2], al
mov eax, dword [esp + 0x20]
shr eax, 0x18
mov byte [edx + 3], al
mov ecx, esi
mov byte [edx + 4], cl
mov eax, esi
shr eax, 8
mov byte [edx + 5], al
mov eax, esi
shr eax, 0x10
mov byte [edx + 6], al
mov eax, esi
shr eax, 0x18
mov byte [edx + 7], al
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
lea edx, [esp + 0x40]
add edx, dword [esp + 0x24]
mov dword [esp + 0x28], edx
lea esi, [esi]
cmp dword [esp + 0x2c], ebx
jb 0x52fc10
sub dword [esp + 0x2c], ebx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], esi
mov dword [esp + 8], 1
mov edx, dword [esp + 0x80]
mov dword [esp + 4], edx
lea eax, [esp + 0x38]
mov dword [esp], eax
call fcn.005315c0
mov edx, dword [esp + 0x70]
add edx, ebx
cmp ebx, 8
jbe switch.0x0052fff0
xor edi, edi
xor ecx, ecx
nop
lea esi, [esi]
xor eax, eax
mov al, byte [edx - 1]
or eax, ecx
lea edx, [edx + ebx - 1]
mov dword [esp + 0x70], edx
xor eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
xor edx, edi
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x74]
add edx, ebx
cmp ebx, 8
ja case.0x52fcec.0
jmp dword [ebx*4 + 0x60a5a4]
mov edx, ebp
shr edx, 0x18
mov byte [eax - 1], dl
dec eax
lea edx, [eax - 1]
mov ecx, ebp
shr ecx, 0x10
mov byte [eax - 1], cl
lea eax, [edx - 1]
mov ecx, ebp
shr ecx, 8
mov byte [edx - 1], cl
lea edx, [eax - 1]
mov ecx, ebp
mov byte [eax - 1], cl
lea eax, [edx - 1]
mov ecx, edi
shr ecx, 0x18
mov byte [edx - 1], cl
lea edx, [eax - 1]
mov ecx, edi
shr ecx, 0x10
mov byte [eax - 1], cl
lea eax, [edx - 1]
mov ecx, edi
shr ecx, 8
mov byte [edx - 1], cl
mov edx, edi
mov byte [eax - 1], dl
lea eax, [eax + ebx - 1]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x28]
sub eax, ebx
cmp ebx, dword [esp + 0x28]
ja 0x52fc10
mov dword [esp + 0x28], eax
jmp 0x52f9f0
mov edi, dword [esp + 0x18]
shr edi, 0x18
mov ecx, edi
mov byte [edx - 1], cl
dec edx
lea edi, [edx - 1]
mov ebp, dword [esp + 0x18]
shr ebp, 0x10
mov ecx, ebp
mov byte [edx - 1], cl
lea edx, [edi - 1]
mov ebp, dword [esp + 0x18]
shr ebp, 8
mov ecx, ebp
mov byte [edi - 1], cl
lea edi, [edx - 1]
mov cl, byte [esp + 0x18]
mov byte [edx - 1], cl
lea edx, [edi - 1]
mov ebp, eax
shr ebp, 0x18
mov ecx, ebp
mov byte [edi - 1], cl
lea edi, [edx - 1]
mov ebp, eax
shr ebp, 0x10
mov ecx, ebp
mov byte [edx - 1], cl
lea edx, [edi - 1]
mov ebp, eax
shr ebp, 8
mov ecx, ebp
mov byte [edi - 1], cl
mov byte [edx - 1], al
lea edx, [edx + ebx - 1]
mov dword [esp + 0x74], edx
cmp dword [esp + 0x78], 0x20
je 0x5301c0
cmp dword [esp + 0x78], 0x40
je 0x5301d0
mov edx, dword [esp + 0x20]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x4c], ecx
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x530220
mov eax, 8
sub eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dl, byte [esp + ecx + 0x41]
and edx, 0xff
mov esi, edx
mov cl, al
sar esi, cl
mov ecx, dword [esp + 0x24]
xor edx, edx
mov dl, byte [esp + ecx + 0x40]
mov cl, byte [esp + 0x1c]
shl edx, cl
or edx, esi
mov byte [esp + 0x40], dl
mov edx, dword [esp + 0x24]
mov cl, byte [esp + edx + 0x42]
inc edx
and ecx, 0xff
mov esi, ecx
mov cl, al
sar esi, cl
mov dl, byte [esp + edx + 0x40]
and edx, 0xff
mov cl, byte [esp + 0x1c]
shl edx, cl
or edx, esi
mov byte [esp + 0x41], dl
mov edx, dword [esp + 0x24]
mov cl, byte [esp + edx + 0x43]
add edx, 2
and ecx, 0xff
mov esi, ecx
mov cl, al
sar esi, cl
mov dl, byte [esp + edx + 0x40]
and edx, 0xff
mov cl, byte [esp + 0x1c]
shl edx, cl
or edx, esi
mov byte [esp + 0x42], dl
mov edx, dword [esp + 0x24]
mov cl, byte [esp + edx + 0x44]
add edx, 3
and ecx, 0xff
mov esi, ecx
mov cl, al
sar esi, cl
mov dl, byte [esp + edx + 0x40]
and edx, 0xff
mov cl, byte [esp + 0x1c]
shl edx, cl
or edx, esi
mov byte [esp + 0x43], dl
mov edx, dword [esp + 0x24]
mov cl, byte [esp + edx + 0x45]
add edx, 4
and ecx, 0xff
mov esi, ecx
mov cl, al
sar esi, cl
mov dl, byte [esp + edx + 0x40]
and edx, 0xff
mov cl, byte [esp + 0x1c]
shl edx, cl
or edx, esi
mov byte [esp + 0x44], dl
mov edx, dword [esp + 0x24]
mov cl, byte [esp + edx + 0x46]
add edx, 5
and ecx, 0xff
mov esi, ecx
mov cl, al
sar esi, cl
mov dl, byte [esp + edx + 0x40]
and edx, 0xff
mov cl, byte [esp + 0x1c]
shl edx, cl
or edx, esi
mov byte [esp + 0x45], dl
mov edx, dword [esp + 0x24]
mov cl, byte [esp + edx + 0x47]
add edx, 6
and ecx, 0xff
mov esi, ecx
mov cl, al
sar esi, cl
mov dl, byte [esp + edx + 0x40]
and edx, 0xff
mov cl, byte [esp + 0x1c]
shl edx, cl
or edx, esi
mov byte [esp + 0x46], dl
mov esi, dword [esp + 0x24]
xor edx, edx
mov dl, byte [esp + esi + 0x48]
mov cl, al
sar edx, cl
xor eax, eax
mov al, byte [esp + esi + 0x47]
mov cl, byte [esp + 0x1c]
shl eax, cl
or edx, eax
mov byte [esp + 0x47], dl
mov eax, dword [esp + 0x40]
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0x44]
jmp 0x52fc70
mov edx, eax
jmp 0x52fd14
mov edx, eax
jmp 0x52fd3d
mov edx, eax
jmp 0x52fd27
mov edi, edx
jmp 0x52fdbf
mov edi, edx
jmp 0x52fda5
mov edi, edx
jmp 0x52fd8c
jmp dword [ebx*4 + 0x60a5c8]
xor edi, edi
lea eax, [edx - 1]
xor ecx, ecx
mov cl, byte [edx - 1]
shl ecx, 0x10
or ecx, edi
lea edx, [eax - 1]
mov al, byte [eax - 1]
and eax, 0xff
shl eax, 8
or eax, ecx
lea ecx, [edx - 1]
mov dl, byte [edx - 1]
and edx, 0xff
mov edi, edx
or edi, eax
lea edx, [ecx - 1]
mov cl, byte [ecx - 1]
and ecx, 0xff
shl ecx, 0x18
lea ebp, [edx - 1]
xor eax, eax
mov al, byte [edx - 1]
shl eax, 0x10
or eax, ecx
lea edx, [ebp - 1]
xor ecx, ecx
mov cl, byte [ebp - 1]
shl ecx, 8
or ecx, eax
jmp 0x52fcc0
mov eax, edx
xor ecx, ecx
jmp 0x53000f
xor eax, eax
jmp 0x53001f
mov ecx, edx
xor edi, edi
jmp 0x53002f
xor edi, edi
xor ecx, ecx
jmp 0x53003e
mov ebp, edx
xor edi, edi
xor eax, eax
jmp 0x53004b
mov cl, byte [edx - 1]
and ecx, 0xff
mov edi, ecx
shl edi, 0x18
dec edx
jmp 0x530002
jmp dword [ebx*4 + 0x60a5ec]
xor edi, edi
lea edx, [eax - 1]
xor ecx, ecx
mov cl, byte [eax - 1]
shl ecx, 0x10
or ecx, edi
lea eax, [edx - 1]
mov dl, byte [edx - 1]
and edx, 0xff
shl edx, 8
or edx, ecx
lea ecx, [eax - 1]
mov al, byte [eax - 1]
and eax, 0xff
mov ebp, eax
or ebp, edx
lea eax, [ecx - 1]
xor edx, edx
mov dl, byte [ecx - 1]
shl edx, 0x18
lea edi, [eax - 1]
xor ecx, ecx
mov cl, byte [eax - 1]
shl ecx, 0x10
or ecx, edx
lea eax, [edi - 1]
xor edx, edx
mov dl, byte [edi - 1]
shl edx, 8
or edx, ecx
jmp 0x52fa30
mov edx, eax
xor ecx, ecx
jmp 0x5300ef
xor edx, edx
jmp 0x530100
mov ecx, eax
xor ebp, ebp
jmp 0x53010f
xor ebp, ebp
xor edx, edx
jmp 0x53011a
mov edi, eax
xor ebp, ebp
xor ecx, ecx
jmp 0x530127
mov dl, byte [eax - 1]
and edx, 0xff
mov edi, edx
shl edi, 0x18
dec eax
jmp 0x5300e2
mov dword [esp + 0x20], esi
mov esi, edi
jmp 0x52fbe6
mov dword [esp + 0x20], esi
mov esi, eax
jmp 0x52fc70
mov esi, dword [esp + 0x18]
mov dword [esp + 0x20], eax
jmp 0x52fc70
mov esi, ebp
mov dword [esp + 0x20], edi
jmp 0x52fbe6
mov dword [esp + 8], 8
mov edx, dword [esp + 0x2c]
mov dword [esp + 4], edx
lea ecx, [esp + 0x40]
mov dword [esp], ecx
call sub.msvcrt.dll_memmove
jmp 0x52fbda
mov dword [esp + 8], 8
mov edx, dword [esp + 0x28]
mov dword [esp + 4], edx
lea ecx, [esp + 0x40]
mov dword [esp], ecx
call sub.msvcrt.dll_memmove
jmp 0x52ff70