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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x2c], ecx
cmp eax, 0x7e000000
ja 0x52f274
cmp eax, 0x1000a
jg 0x52f274
lea edi, [edx + eax]
cmp eax, 0xc
mov dword [esp + 0x38], edi
mov edi, dword [esp + 0x2c]
mov ebp, edx
mov dword [esp + 0x28], edi
jg 0x52f2a7
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x78]
sub ebx, ebp
test eax, eax
je 0x52f239
mov eax, dword [esp + 0x28]
mov edx, 0x80808081
sub eax, dword [esp + 0x2c]
lea ecx, [ebx + eax + 1]
lea eax, [ebx + 0xf0]
mul edx
shr edx, 7
add edx, ecx
cmp dword [esp + 0x74], edx
jb 0x52f274
mov edi, dword [esp + 0x28]
cmp ebx, 0xe
mov eax, edi
jle 0x52f27e
lea edx, [ebx - 0xf]
add eax, 1
cmp edx, 0xfe
mov byte [edi], 0xf0
jle 0x52f26a
sub edx, 0xff
add eax, 1
cmp edx, 0xfe
mov byte [eax - 1], 0xff
jg 0x52f255
lea esi, [eax + 1]
mov byte [eax], dl
jmp 0x52f288
add esp, 0x5c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, ebx
shl eax, 4
lea esi, [edi + 1]
mov byte [edi], al
mov dword [esp + 8], ebx
mov dword [esp + 4], ebp
mov dword [esp], esi
call fcn.0052e9ac
lea eax, [esi + ebx]
sub eax, dword [esp + 0x2c]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [esp + 0x38]
xor edx, edx
mov dword [esp + 0x30], ebp
mov eax, esi
sub eax, 0xc
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x74]
add eax, edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
imul eax, dword [ebp], 0x9e3779b1
shr eax, 0x13
mov word [edi + eax*2], dx
lea edx, [esi - 8]
imul eax, dword [ebp + 1], 0x9e3779b1
mov dword [esp + 0x24], edx
lea edx, [esi - 6]
sub esi, 5
lea edi, [ebp + 1]
mov dword [esp + 0x40], esi
mov esi, ebp
mov ebp, edi
shr eax, 0x13
mov edi, esi
mov dword [esp + 0x3c], edx
mov ecx, 0x40
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], edi
jmp 0x52f318
mov ebp, edx
mov ecx, edi
mov edx, dword [esp + 0x18]
lea edi, [ecx + 1]
shr ecx, 6
mov dword [esp + 0x18], ecx
add edx, ebp
cmp dword [esp + 0x20], edx
jb 0x52f571
mov esi, dword [esp + 0x1c]
lea ebx, [esi + eax*2]
mov esi, ebp
imul eax, dword [edx], 0x9e3779b1
sub esi, dword [esp + 0x14]
movzx ecx, word [ebx]
add ecx, dword [esp + 0x14]
mov word [ebx], si
mov esi, dword [ebp]
shr eax, 0x13
cmp dword [ecx], esi
jne 0x52f314
cmp dword [esp + 0x30], ebp
mov edi, dword [esp + 0x14]
jae 0x52f374
cmp edi, ecx
jae 0x52f374
movzx eax, byte [ecx - 1]
cmp byte [ebp - 1], al
je 0x52f615
mov eax, ebp
sub eax, dword [esp + 0x30]
mov ebx, eax
mov eax, dword [esp + 0x28]
lea esi, [eax + 1]
mov eax, dword [esp + 0x78]
test eax, eax
je 0x52f3a5
mov eax, 0x80808081
mul ebx
shr edx, 7
lea eax, [ebx + edx + 8]
add eax, esi
cmp dword [esp + 0x34], eax
jb 0x52f274
cmp ebx, 0xe
jbe 0x52f561
mov eax, dword [esp + 0x28]
lea edx, [ebx - 0xf]
cmp edx, 0xfe
mov byte [eax], 0xf0
mov eax, esi
jle 0x52f3d9
nop
sub edx, 0xff
add eax, 1
cmp edx, 0xfe
mov byte [eax - 1], 0xff
jg 0x52f3c4
lea esi, [eax + 1]
mov byte [eax], dl
mov eax, ebx
cmp eax, 8
lea ebx, [esi + ebx]
jg 0x52f5b4
mov edx, dword [esp + 0x30]
mov dword [esp + 0x14], ebx
mov eax, dword [edx]
mov dword [esi], eax
mov eax, dword [edx + 4]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x28]
mov esi, ebx
mov edx, ebp
sub edx, ecx
mov word [esi], dx
lea edx, [ebp + 4]
cmp edx, dword [esp + 0x24]
lea esi, [ecx + 4]
jae 0x52f57a
mov ebx, dword [ebp + 4]
xor ebx, dword [ecx + 4]
mov ecx, edx
mov dword [esp + 0x18], ebx
jne 0x52f454
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x28], eax
add ecx, 4
add esi, 4
cmp ecx, dword [esp + 0x24]
jae 0x52f5aa
mov eax, dword [ecx]
xor eax, dword [esi]
mov dword [esp + 0x18], eax
je 0x52f431
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], ebx
nop
tzcnt esi, dword [esp + 0x18]
sar esi, 3
add ecx, esi
sub ecx, edx
mov ebx, dword [esp + 0x14]
lea ebp, [ebp + ecx + 4]
add ebx, 2
cmp ecx, 0xe
jbe 0x52f534
mov edx, dword [esp + 0x78]
test edx, edx
je 0x52f490
mov edx, ecx
shr edx, 8
lea edx, [ebx + edx + 6]
cmp dword [esp + 0x34], edx
jb 0x52f274
sub ecx, 0xf
add byte [eax], 0xf
cmp ecx, 0x1fd
jbe 0x52f4bd
lea esi, [esi]
sub ecx, 0x1fe
add ebx, 2
mov byte [ebx - 2], 0xff
cmp ecx, 0x1fd
mov byte [ebx - 1], 0xff
ja 0x52f4a4
cmp ecx, 0xfe
jbe 0x52f4d1
mov byte [ebx], 0xff
sub ecx, 0xff
add ebx, 1
cmp dword [esp + 0x20], ebp
lea eax, [ebx + 1]
mov byte [ebx], cl
jb 0x52f53e
imul edx, dword [ebp - 2], 0x9e3779b1
mov esi, dword [esp + 0x1c]
lea ecx, [ebp - 2]
mov ebx, dword [ebp]
sub ecx, edi
shr edx, 0x13
mov word [esi + edx*2], cx
imul edx, ebx, 0x9e3779b1
shr edx, 0x13
lea edx, [esi + edx*2]
mov esi, ebp
movzx ecx, word [edx]
sub esi, edi
mov word [edx], si
add ecx, edi
lea edx, [ecx + 0xffff]
cmp ebp, edx
ja 0x52f547
cmp dword [ecx], ebx
jne 0x52f547
lea edx, [eax + 1]
mov dword [esp + 0x14], edx
mov esi, edx
mov byte [eax], 0
jmp 0x52f404
add byte [eax], cl
mov eax, ebx
cmp dword [esp + 0x20], ebp
jae 0x52f4dc
mov dword [esp + 0x28], eax
jmp 0x52f207
mov dword [esp + 0x28], eax
imul eax, dword [ebp + 1], 0x9e3779b1
mov dword [esp + 0x30], ebp
add ebp, 1
shr eax, 0x13
jmp 0x52f2fe
mov edx, dword [esp + 0x28]
mov eax, ebx
shl eax, 4
mov byte [edx], al
jmp 0x52f3de
mov ebp, dword [esp + 0x30]
jmp 0x52f207
mov ecx, edx
cmp ecx, dword [esp + 0x3c]
jae 0x52f590
movzx ebx, word [ecx]
cmp word [esi], bx
jne 0x52f590
add ecx, 2
add esi, 2
cmp ecx, dword [esp + 0x40]
jae 0x52f5a3
movzx ebx, byte [ecx]
cmp byte [esi], bl
sete bl
movzx ebx, bl
add ecx, ebx
sub ecx, edx
jmp 0x52f461
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x28]
jmp 0x52f57c
mov eax, dword [esp + 0x30]
mov dword [esp + 0x48], esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x4c], edi
mov edx, eax
add eax, 4
mov dword [esp + 0x18], eax
lea eax, [esi + 4]
mov dword [esp + 0x44], eax
mov eax, esi
mov esi, dword [esp + 0x44]
mov ecx, dword [edx]
mov edi, dword [esp + 0x18]
mov dword [eax], ecx
mov ecx, edx
add edx, 8
sub ecx, dword [esp + 0x30]
mov ecx, dword [edi + ecx]
mov edi, eax
add eax, 8
sub edi, dword [esp + 0x48]
cmp ebx, eax
mov dword [esi + edi], ecx
ja 0x52f5da
mov ecx, dword [esp + 0x14]
mov esi, ebx
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x4c]
jmp 0x52f404
sub ebp, 1
sub ecx, 1
cmp ebp, dword [esp + 0x30]
je 0x52f374
cmp ecx, edi
jne 0x52f367
jmp 0x52f374