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

Disassembly:
sub esp, 0x6c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x7c]
push edi
mov ax, word [esi + 0x4c]
mov cx, word [esi + 0x4e]
mov dx, word [esi + 0x50]
mov word [esp + 0x24], ax
lea eax, [esi + 0x38]
mov word [esp + 0x28], cx
mov word [esp + 0x2c], dx
mov ebx, dword [esi]
mov ecx, dword [eax]
mov ebp, dword [esi + 0x30]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esi + 4]
mov edx, dword [eax + 4]
mov dword [esp + 0x38], ecx
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x70], edx
mov edi, dword [eax + 8]
mov edx, dword [esi + 0x48]
mov dword [esp + 0x18], ecx
mov ecx, dword [esi + 0x34]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x78], eax
mov eax, dword [esi + 0x28]
add edx, ebx
mov ebx, dword [esi + 0x2c]
mov dword [esp + 0x80], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x1c], edx
sub ecx, eax
mov dword [esp + 0x20], eax
sub ecx, 0x20
test ebx, ebx
mov dword [esp + 0x10], ecx
jne 0x51eddf
test ebp, ebp
je 0x51ef52
mov ecx, dword [esi + 0x10]
mov edx, ebx
sub edx, ecx
mov ecx, dword [esp + 0x14]
add edx, eax
cmp ecx, edx
jbe 0x51edfd
pop edi
pop esi
pop ebp
mov eax, 0xfffffffd
pop ebx
add esp, 0x6c
ret
mov ecx, dword [esp + 0x10]
lea edx, [ebx + ebp]
cmp edx, ecx
jg 0x51eeb7
lea edx, [ebx + ebp]
sub ecx, edx
mov dword [esp + 0x10], ecx
lea ecx, [ebx + eax]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x80]
sub ecx, eax
mov edx, dword [ecx + eax + 4]
add eax, 8
mov dword [esp + 0x60], edx
mov edx, dword [ecx + eax - 8]
mov dword [eax - 8], edx
mov edx, dword [esp + 0x60]
mov dword [eax - 4], edx
mov edx, dword [esp + 0x30]
cmp eax, edx
jb 0x51ee25
mov eax, edx
mov edx, dword [esp + 0x80]
add edx, ebx
mov ebx, dword [esp + 0x14]
cmp ebx, 8
mov dword [esp + 0x80], edx
jge 0x51ee86
cmp ebx, ebp
jge 0x51ee86
xor ecx, ecx
test ebp, ebp
jbe 0x51eeac
mov edx, ecx
sub edx, ebx
inc ecx
cmp ecx, ebp
mov dl, byte [edx + eax]
mov byte [ecx + eax - 1], dl
jb 0x51ee6b
add eax, ebp
mov dword [esp + 0x20], eax
jmp 0x51ef4e
mov edx, eax
mov ecx, eax
sub edx, ebx
mov ebx, dword [edx + 4]
add ecx, 8
mov dword [esp + 0x68], ebx
mov ebx, dword [edx]
mov dword [ecx - 8], ebx
mov ebx, dword [esp + 0x68]
mov dword [ecx - 4], ebx
lea ebx, [eax + ebp]
add edx, 8
cmp ecx, ebx
jb 0x51ee8c
add eax, ebp
mov dword [esp + 0x20], eax
jmp 0x51ef4e
add ecx, 0x20
cmp ebx, ecx
mov dword [esp + 0x10], ecx
jg 0x51f197
test ebx, ebx
jbe 0x51eef8
mov edx, dword [esp + 0x80]
mov ecx, eax
sub edx, eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x20], edx
jmp 0x51eee3
mov edx, dword [esp + 0x20]
mov dl, byte [ecx + edx]
mov byte [ecx], dl
mov edx, dword [esp + 0x30]
inc ecx
dec edx
mov dword [esp + 0x30], edx
jne 0x51eedf
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x80]
add eax, ebx
add edx, ebx
sub ecx, ebx
xor ebx, ebx
cmp ebp, ecx
mov dword [esp + 0x80], edx
mov dword [esp + 0x10], ecx
jg 0x51f16c
xor edx, edx
test ebp, ebp
mov dword [esp + 0x30], edx
jbe 0x51ef3b
sub edx, dword [esp + 0x14]
mov bl, byte [edx + eax]
mov edx, dword [esp + 0x30]
mov byte [edx + eax], bl
inc edx
cmp edx, ebp
mov dword [esp + 0x30], edx
jb 0x51ef24
mov edx, 0xffffffe0
add eax, ebp
sub edx, ebp
mov dword [esp + 0x20], eax
add ecx, edx
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
test ecx, ecx
jbe 0x51f15f
mov ecx, 0x3f
sub ecx, edi
and ecx, 0xfffffff8
mov eax, ecx
mov dword [esp + 0x30], ecx
sar eax, 3
sub edx, eax
mov eax, dword [esp + 0x38]
cmp edx, eax
jb 0x51edf0
mov ebp, dword [ecx*8 + 0x66c228]
mov ebx, dword [edx]
mov eax, dword [edx + 4]
and ebp, ebx
mov ebx, dword [ecx*8 + 0x66c22c]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x70]
and ebx, eax
mov eax, dword [esp + 0x6c]
call fcn.00526fd0
mov ecx, dword [esp + 0x24]
or ebp, eax
mov eax, dword [esp + 0x30]
and ecx, 0xffff
add edi, eax
or ebx, edx
mov eax, dword [esi + ecx*8 + 0x54]
mov dword [esp + 0x3c], eax
and eax, 0xff
mov edx, dword [esi + ecx*8 + 0x58]
sub edi, eax
mov dword [esp + 0x40], edx
mov ecx, edi
mov eax, ebp
mov edx, ebx
call fcn.00526f40
mov ecx, dword [edi*8 + 0x66c228]
mov dword [esp + 0x34], edx
mov edx, dword [edi*8 + 0x66c22c]
and ebp, ecx
mov ecx, dword [esp + 0x3d]
and ebx, edx
and ecx, 0xff
mov edx, eax
shr edx, cl
mov dword [esp + 0x70], ebx
mov ebx, dword [esp + 0x3e]
add edx, ebx
mov ebx, dword [ecx*8 + 0x66c228]
mov ecx, dword [esp + 0x40]
and ebx, eax
mov eax, dword [esp + 0x80]
add ebx, ecx
mov dword [esp + 0x24], edx
lea edx, [esi + 0xb8d4]
lea ecx, [ebx + eax]
cmp ecx, edx
jb 0x51f03f
pop edi
pop esi
pop ebp
mov eax, 0xfffffffd
pop ebx
add esp, 0x6c
ret
mov ecx, dword [esp + 0x28]
and ecx, 0xffff
mov eax, dword [esi + ecx*8 + 0x254]
mov dword [esp + 0x44], eax
and eax, 0xff
mov edx, dword [esi + ecx*8 + 0x258]
sub edi, eax
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x70]
mov ecx, edi
mov eax, ebp
call fcn.00526f40
mov ecx, dword [edi*8 + 0x66c228]
mov dword [esp + 0x34], edx
mov edx, dword [edi*8 + 0x66c22c]
and ebp, ecx
mov ecx, dword [esp + 0x45]
mov dword [esp + 0x6c], ebp
mov ebp, dword [esp + 0x70]
and ecx, 0xff
and ebp, edx
mov edx, eax
shr edx, cl
mov dword [esp + 0x70], ebp
mov ebp, dword [esp + 0x46]
add edx, ebp
mov ebp, dword [ecx*8 + 0x66c228]
mov ecx, dword [esp + 0x48]
and ebp, eax
add ebp, ecx
mov ecx, dword [esp + 0x2c]
and ecx, 0xffff
mov dword [esp + 0x28], edx
mov eax, dword [esi + ecx*8 + 0x454]
mov dword [esp + 0x4c], eax
and eax, 0xff
mov edx, dword [esi + ecx*8 + 0x458]
sub edi, eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x70]
mov ecx, edi
call fcn.00526f40
mov ecx, dword [edi*8 + 0x66c22c]
mov dword [esp + 0x54], eax
mov eax, dword [edi*8 + 0x66c228]
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x6c]
and edx, eax
mov eax, dword [esp + 0x70]
and eax, ecx
mov ecx, dword [esp + 0x4d]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x54]
and ecx, 0xff
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x4e]
shr edx, cl
add edx, eax
mov eax, dword [ecx*8 + 0x66c228]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x2c], edx
and eax, dword [esp + 0x54]
add eax, ecx
je 0x51f14d
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
jmp 0x51eddf
mov dword [esi + 0xc], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x6c
ret
xor edx, edx
test ecx, ecx
mov dword [esp + 0x30], edx
jbe 0x51f191
sub edx, dword [esp + 0x14]
mov cl, byte [edx + eax]
mov edx, dword [esp + 0x30]
mov byte [edx + eax], cl
mov ecx, dword [esp + 0x10]
inc edx
cmp edx, ecx
mov dword [esp + 0x30], edx
jb 0x51f176
add eax, ecx
sub ebp, ecx
jmp 0x51f1e1
test ecx, ecx
jbe 0x51f1cd
mov edx, dword [esp + 0x80]
mov dword [esp + 0x30], ecx
sub edx, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], edx
mov ecx, eax
jmp 0x51f1b8
mov edx, dword [esp + 0x20]
mov dl, byte [ecx + edx]
mov byte [ecx], dl
mov edx, dword [esp + 0x30]
inc ecx
dec edx
mov dword [esp + 0x30], edx
jne 0x51f1b4
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x80]
add eax, ecx
add edx, ecx
sub ebx, ecx
mov dword [esp + 0x80], edx
mov ecx, dword [esp + 0x14]
mov dx, word [esp + 0x24]
mov dword [esi + 0x34], ecx
mov cx, word [esp + 0x28]
mov word [esi + 0x4c], dx
mov dx, word [esp + 0x2c]
mov word [esi + 0x4e], cx
mov word [esi + 0x50], dx
mov edx, dword [esp + 0x6c]
lea ecx, [esi + 0x38]
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebp
mov dword [ecx], edx
mov edx, dword [esp + 0x70]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x78]
mov dword [ecx + 8], edi
pop edi
mov dword [ecx + 0xc], edx
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x20], ecx
mov ecx, dword [esp + 0x18]
mov edx, dword [esi]
sub ecx, edx
mov edx, dword [esp + 0x7c]
mov dword [esi + 0x48], ecx
mov dword [esi + 0x28], edx
mov dword [esi + 0xc], eax
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
add esp, 0x6c
ret