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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov ebx, dword [esp + 0x7c]
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov ebp, dword [esp + 0x80]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x84]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebx
mov ebx, dword [sym.imp.libssp_0.dll___stack_chk_guard]
mov dword [esp + 0x4c], ebx
xor ebx, ebx
mov ebx, dword [esp + 0x78]
test ebx, ebx
je 0x6b51fb5e
cmp eax, edx
je 0x6b51fe4e
cmp dword [esp + 0x78], 0xf
mov ecx, eax
jbe 0x6b51fef5
mov eax, dword [esp + 0x78]
mov ebx, ecx
mov dword [esp + 0x2c], ebp
mov edi, ebp
mov dword [esp + 0x28], edx
mov esi, edx
mov ebp, ecx
sub eax, 0x10
shr eax, 4
mov dword [esp + 0x24], eax
add eax, 1
shl eax, 4
mov dword [esp + 0x20], eax
add ebx, eax
jmp 0x6b51f8e2
mov ebp, edx
mov eax, dword [esp + 0x14]
mov dword [esp + 4], esi
mov dword [esp], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
call eax
mov edx, dword [edi]
xor dword [esi], edx
mov edx, dword [edi + 4]
xor dword [esi + 4], edx
mov edx, dword [edi + 8]
xor dword [esi + 8], edx
lea edx, [ebp + 0x10]
mov eax, dword [edi + 0xc]
mov edi, ebp
xor dword [esi + 0xc], eax
add esi, 0x10
cmp edx, ebx
jne 0x6b51f8e0
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x10], ebx
and dword [esp + 0x78], 0xf
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x2c]
add edi, edx
shl eax, 4
add eax, dword [esp + 0x1c]
mov edx, dword [eax]
mov dword [ebp], edx
mov edx, dword [eax + 4]
mov dword [ebp + 4], edx
mov edx, dword [eax + 8]
mov dword [ebp + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ebp + 0xc], eax
mov ecx, dword [esp + 0x78]
test ecx, ecx
je 0x6b51fb5e
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
lea esi, [edi + 4]
mov dword [esp + 8], eax
lea eax, [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x18]
mov dword [esp], ebx
call eax
lea eax, [ebx + 4]
mov dword [esp + 0x10], ebx
lea ecx, [ebp + 4]
cmp edi, eax
setae dl
cmp ebx, esi
setae byte [esp + 0x14]
movzx ebx, byte [esp + 0x14]
or edx, ebx
cmp ebp, eax
setae al
cmp dword [esp + 0x10], ecx
setae byte [esp + 0x14]
movzx ebx, byte [esp + 0x14]
or eax, ebx
and edx, eax
cmp dword [esp + 0x78], 3
seta al
and edx, eax
cmp ebp, esi
setae al
cmp edi, ecx
setae cl
or eax, ecx
test dl, al
je 0x6b51fb80
mov ebx, dword [esp + 0x10]
mov eax, ebx
or eax, ebp
or eax, edi
test al, 3
jne 0x6b51fb80
mov edx, dword [esp + 0x78]
mov esi, dword [ebx]
mov eax, dword [esp + 0x3c]
test edx, edx
mov edx, 1
cmovne edx, dword [esp + 0x78]
xor eax, dword [ebp]
mov dword [edi], eax
mov ecx, edx
mov dword [ebp], esi
shr ecx, 2
cmp ecx, 1
je 0x6b51fa2f
mov esi, dword [ebx + 4]
mov eax, dword [esp + 0x40]
xor eax, dword [ebp + 4]
mov dword [edi + 4], eax
mov dword [ebp + 4], esi
cmp ecx, 3
jne 0x6b51fa2f
mov ecx, dword [ebx + 8]
mov eax, dword [esp + 0x44]
xor eax, dword [ebp + 8]
mov dword [edi + 8], eax
mov dword [ebp + 8], ecx
mov eax, edx
and eax, 0xfffffffc
and edx, 3
je 0x6b51fa9d
mov ecx, dword [esp + 0x10]
movzx edx, byte [esp + eax + 0x3c]
movzx esi, byte [ecx + eax]
lea ecx, [ebp + eax]
xor dl, byte [ecx]
mov ebx, esi
mov byte [edi + eax], dl
lea edx, [eax + 1]
mov byte [ecx], bl
cmp dword [esp + 0x78], edx
jbe 0x6b51fa9d
mov ecx, dword [esp + 0x10]
movzx esi, byte [ecx + eax + 1]
lea ecx, [ebp + edx]
movzx edx, byte [esp + eax + 0x3d]
xor dl, byte [ecx]
mov ebx, esi
mov byte [edi + eax + 1], dl
lea edx, [eax + 2]
mov byte [ecx], bl
cmp dword [esp + 0x78], edx
jbe 0x6b51fa9d
mov ecx, dword [esp + 0x10]
movzx esi, byte [ecx + eax + 2]
lea ecx, [ebp + edx]
movzx edx, byte [esp + eax + 0x3e]
xor dl, byte [ecx]
mov byte [edi + eax + 2], dl
mov eax, esi
mov byte [ecx], al
mov eax, dword [esp + 0x78]
mov esi, dword [esp + 0x10]
test eax, eax
mov eax, 1
cmovne eax, dword [esp + 0x78]
lea edx, [eax + 4]
lea edi, [ebp + eax]
lea ecx, [esi + eax]
add esi, edx
mov dword [esp + 0x14], edi
cmp edi, esi
lea esi, [ebp + edx]
mov dword [esp + 0x18], edx
setae bl
cmp ecx, esi
mov edi, ebx
setae bl
mov esi, ebx
or esi, edi
mov edi, 0xf
sub edi, eax
cmp edi, 3
seta bl
mov edi, ebx
mov ebx, esi
mov edx, edi
test bl, dl
je 0x6b51fd40
mov edx, dword [esp + 0x14]
mov esi, edx
or esi, ecx
and esi, 3
jne 0x6b51fd40
mov esi, 0x10
mov ebx, dword [ecx]
sub esi, eax
mov edi, esi
mov dword [edx], ebx
shr edi, 2
cmp edi, 1
je 0x6b51fb2b
mov ebx, dword [ecx + 4]
mov dword [edx + 4], ebx
cmp edi, 3
jne 0x6b51fb2b
mov ecx, dword [ecx + 8]
mov dword [edx + 8], ecx
mov edx, esi
and edx, 0xfffffffc
add eax, edx
cmp esi, edx
je 0x6b51fb5e
mov edi, dword [esp + 0x10]
movzx edx, byte [edi + eax]
mov byte [ebp + eax], dl
cmp eax, 0xf
je 0x6b51fb5e
movzx edx, byte [edi + eax + 1]
mov byte [ebp + eax + 1], dl
cmp eax, 0xe
je 0x6b51fb5e
movzx edx, byte [edi + eax + 2]
mov byte [ebp + eax + 2], dl
mov eax, dword [esp + 0x4c]
xor eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
jne 0x6b51ff0d
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [esp + 0x10]
movzx eax, byte [esp + 0x3c]
xor al, byte [ebp]
cmp dword [esp + 0x78], 1
movzx edx, byte [ecx]
mov byte [edi], al
mov byte [ebp], dl
je 0x6b51fa9d
movzx edx, byte [ecx + 1]
movzx eax, byte [esp + 0x3d]
xor al, byte [ebp + 1]
cmp dword [esp + 0x78], 2
mov byte [edi + 1], al
mov byte [ebp + 1], dl
je 0x6b51fa9d
movzx edx, byte [ecx + 2]
movzx eax, byte [esp + 0x3e]
xor al, byte [ebp + 2]
cmp dword [esp + 0x78], 3
mov byte [edi + 2], al
mov byte [ebp + 2], dl
jbe 0x6b51fa9d
movzx edx, byte [ecx + 3]
movzx eax, byte [esp + 0x3f]
xor al, byte [ebp + 3]
cmp dword [esp + 0x78], 4
mov byte [edi + 3], al
mov byte [ebp + 3], dl
jbe 0x6b51fa9d
movzx edx, byte [ecx + 4]
movzx eax, byte [esp + 0x40]
xor al, byte [ebp + 4]
cmp dword [esp + 0x78], 5
mov byte [edi + 4], al
mov byte [ebp + 4], dl
je 0x6b51fa9d
movzx edx, byte [ecx + 5]
movzx eax, byte [esp + 0x41]
xor al, byte [ebp + 5]
cmp dword [esp + 0x78], 6
mov byte [edi + 5], al
mov byte [ebp + 5], dl
je 0x6b51fa9d
movzx edx, byte [ecx + 6]
movzx eax, byte [esp + 0x42]
xor al, byte [ebp + 6]
cmp dword [esp + 0x78], 7
mov byte [edi + 6], al
mov byte [ebp + 6], dl
je 0x6b51fa9d
movzx edx, byte [ecx + 7]
movzx eax, byte [esp + 0x43]
xor al, byte [ebp + 7]
cmp dword [esp + 0x78], 8
mov byte [edi + 7], al
mov byte [ebp + 7], dl
je 0x6b51fa9d
movzx edx, byte [ecx + 8]
movzx eax, byte [esp + 0x44]
xor al, byte [ebp + 8]
cmp dword [esp + 0x78], 9
mov byte [edi + 8], al
mov byte [ebp + 8], dl
je 0x6b51fa9d
movzx edx, byte [ecx + 9]
movzx eax, byte [esp + 0x45]
xor al, byte [ebp + 9]
cmp dword [esp + 0x78], 0xa
mov byte [edi + 9], al
mov byte [ebp + 9], dl
je 0x6b51fa9d
movzx edx, byte [ecx + 0xa]
movzx eax, byte [esp + 0x46]
xor al, byte [ebp + 0xa]
cmp dword [esp + 0x78], 0xb
mov byte [edi + 0xa], al
mov byte [ebp + 0xa], dl
je 0x6b51fa9d
movzx edx, byte [ecx + 0xb]
movzx eax, byte [esp + 0x47]
xor al, byte [ebp + 0xb]
cmp dword [esp + 0x78], 0xc
mov byte [edi + 0xb], al
mov byte [ebp + 0xb], dl
je 0x6b51fa9d
movzx edx, byte [ecx + 0xc]
movzx eax, byte [esp + 0x48]
xor al, byte [ebp + 0xc]
cmp dword [esp + 0x78], 0xd
mov byte [edi + 0xc], al
mov byte [ebp + 0xc], dl
je 0x6b51fa9d
movzx edx, byte [ecx + 0xd]
movzx eax, byte [esp + 0x49]
xor al, byte [ebp + 0xd]
cmp dword [esp + 0x78], 0xf
mov byte [edi + 0xd], al
mov byte [ebp + 0xd], dl
jne 0x6b51fa9d
movzx edx, byte [ecx + 0xe]
movzx eax, byte [esp + 0x4a]
xor al, byte [ebp + 0xe]
mov byte [edi + 0xe], al
mov byte [ebp + 0xe], dl
movzx eax, byte [ecx + 0xf]
mov byte [ebp + 0xf], al
jmp 0x6b51fb5e
movzx ecx, byte [ecx]
mov edi, dword [esp + 0x14]
mov byte [edi], cl
cmp eax, 0xf
je 0x6b51fb5e
mov ecx, dword [esp + 0x10]
movzx edx, byte [ecx + eax + 1]
mov byte [ebp + eax + 1], dl
cmp eax, 0xe
je 0x6b51fb5e
movzx edx, byte [ecx + eax + 2]
mov byte [ebp + eax + 2], dl
cmp eax, 0xd
je 0x6b51fb5e
movzx edx, byte [ecx + eax + 3]
cmp dword [esp + 0x18], 0x10
mov byte [ebp + eax + 3], dl
je 0x6b51fb5e
movzx edx, byte [ecx + eax + 4]
mov byte [ebp + eax + 4], dl
cmp eax, 0xb
je 0x6b51fb5e
movzx edx, byte [ecx + eax + 5]
mov byte [ebp + eax + 5], dl
cmp eax, 0xa
je 0x6b51fb5e
movzx edx, byte [ecx + eax + 6]
mov byte [ebp + eax + 6], dl
cmp eax, 9
je 0x6b51fb5e
movzx edx, byte [ecx + eax + 7]
mov byte [ebp + eax + 7], dl
cmp eax, 8
je 0x6b51fb5e
movzx edx, byte [ecx + eax + 8]
mov byte [ebp + eax + 8], dl
cmp eax, 7
je 0x6b51fb5e
movzx edx, byte [ecx + eax + 9]
mov byte [ebp + eax + 9], dl
cmp eax, 6
je 0x6b51fb5e
movzx edx, byte [ecx + eax + 0xa]
mov byte [ebp + eax + 0xa], dl
cmp eax, 5
je 0x6b51fb5e
movzx edx, byte [ecx + eax + 0xb]
mov byte [ebp + eax + 0xb], dl
cmp eax, 4
je 0x6b51fb5e
movzx edx, byte [ecx + eax + 0xc]
mov byte [ebp + eax + 0xc], dl
cmp eax, 3
je 0x6b51fb5e
movzx edx, byte [ecx + eax + 0xd]
mov byte [ebp + eax + 0xd], dl
cmp eax, 2
je 0x6b51fb5e
movzx eax, byte [ecx + 0xf]
mov byte [ebp + 0xf], al
jmp 0x6b51fb5e
cmp dword [esp + 0x78], 0xf
jbe 0x6b51ff02
mov eax, dword [esp + 0x78]
mov ebx, edx
lea esi, [esp + 0x3c]
mov edi, edx
sub eax, 0x10
and eax, 0xfffffff0
lea eax, [edx + eax + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
lea esi, [esi]
nop
mov eax, dword [esp + 0x14]
mov dword [esp], ebx
add edi, 0x10
add ebx, 0x10
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
call eax
mov ecx, dword [ebx - 0x10]
mov eax, dword [esp + 0x3c]
xor eax, dword [ebp]
mov dword [edi - 0x10], eax
mov eax, dword [esp + 0x40]
mov dword [ebp], ecx
mov ecx, dword [ebx - 0xc]
xor eax, dword [ebp + 4]
mov dword [edi - 0xc], eax
mov eax, dword [esp + 0x44]
mov dword [ebp + 4], ecx
mov ecx, dword [ebx - 8]
xor eax, dword [ebp + 8]
mov dword [edi - 8], eax
mov eax, dword [esp + 0x48]
mov dword [ebp + 8], ecx
mov ecx, dword [ebx - 4]
xor eax, dword [ebp + 0xc]
mov dword [edi - 4], eax
mov dword [ebp + 0xc], ecx
cmp edi, dword [esp + 0x10]
jne 0x6b51fe80
mov edx, edi
and dword [esp + 0x78], 0xf
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x10], edx
jmp 0x6b51f952
mov dword [esp + 0x10], ecx
mov eax, ebp
mov edi, edx
jmp 0x6b51f93b
mov dword [esp + 0x10], eax
mov edi, eax
jmp 0x6b51f95e
call sym.___stack_chk_fail
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop