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

Disassembly:
push ebp
xor edx, edx
push edi
push esi
push ebx
sub esp, 0x7c
mov eax, dword [esp + 0x98]
mov edi, dword [esp + 0x90]
mov ebp, dword [esp + 0x94]
mov ecx, dword [edi + 0x50]
mov ebx, dword [edi + 0x54]
mov dword [esp + 0x2c], eax
mov eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
mov dword [esp + 0x6c], eax
xor eax, eax
mov eax, dword [esp + 0x9c]
shr eax, 4
mov dword [esp + 0x30], eax
add eax, ecx
adc edx, ebx
cmp dword [esp + 0x9c], 0xf
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
jbe 0x6b52a15f
test edx, edx
je 0x6b52a47c
add ecx, 1
adc ebx, 0
mov eax, ecx
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x48]
mov edx, ebx
mov dword [esp + 0x34], ebx
mov ebx, dword [esp + 0x4c]
cmp ecx, eax
mov esi, ebx
sbb esi, edx
jb 0x6b52a2f7
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x2c], ebp
mov ebp, esi
nop
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov ecx, 0
mov esi, dword [esp + 0x2c]
mov ebx, eax
and ebx, 1
jne 0x6b52a1c4
lea esi, [esi]
nop
shrd eax, edx, 1
add ecx, 1
shr edx, 1
mov ebx, eax
and ebx, 1
je 0x6b52a1b0
mov dword [esp + 0x2c], esi
mov edx, ecx
mov eax, edi
call sym._ocb_lookup_l
test eax, eax
je 0x6b52a464
mov edx, dword [edi + 0x78]
xor edx, dword [eax]
add ebp, 0x10
mov ecx, edx
mov edx, dword [edi + 0x7c]
xor edx, dword [eax + 4]
mov dword [edi + 0x7c], edx
mov dword [edi + 0x78], ecx
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x40], ecx
mov ecx, dword [edi + 0x84]
mov dword [esp + 0x44], edx
mov edx, dword [edi + 0x80]
xor ebx, ecx
mov ecx, dword [esp + 0x2c]
xor edx, dword [eax + 8]
mov dword [edi + 0x80], edx
mov esi, ebx
mov dword [edi + 0x84], ebx
mov ebx, dword [ecx]
add dword [esp + 0x2c], 0x10
mov eax, ebx
mov ebx, dword [ecx + 4]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ebx
mov ebx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
xor dword [edi + 0x88], eax
xor dword [edi + 0x94], ecx
mov eax, dword [esp + 0x38]
xor edx, ebx
xor dword [edi + 0x90], ebx
xor dword [edi + 0x8c], eax
mov eax, dword [esp + 0x40]
xor eax, dword [esp + 0x3c]
mov dword [esp + 0x60], edx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x44]
xor eax, dword [esp + 0x38]
mov dword [esp + 0x5c], eax
mov eax, esi
xor eax, ecx
mov dword [esp + 0x64], eax
mov eax, dword [edi + 8]
mov dword [esp + 8], eax
lea eax, [esp + 0x58]
mov dword [esp + 4], eax
mov dword [esp], eax
call dword [edi]
mov eax, dword [edi + 0x78]
xor dword [esp + 0x58], eax
mov eax, dword [edi + 0x7c]
xor dword [esp + 0x5c], eax
mov eax, dword [edi + 0x80]
xor dword [esp + 0x60], eax
mov eax, dword [edi + 0x84]
xor dword [esp + 0x64], eax
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x4c]
mov dword [ebp - 0x10], eax
mov eax, dword [esp + 0x5c]
mov dword [ebp - 0xc], eax
mov eax, dword [esp + 0x60]
mov dword [ebp - 8], eax
mov eax, dword [esp + 0x64]
mov dword [ebp - 4], eax
mov eax, dword [esp + 0x48]
add dword [esp + 0x30], 1
mov ecx, dword [esp + 0x30]
adc dword [esp + 0x34], 0
mov ebx, dword [esp + 0x34]
cmp eax, ecx
mov eax, edx
sbb eax, ebx
jae 0x6b52a190
mov esi, ebp
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x2c], esi
mov ebx, dword [esp + 0x9c]
and ebx, 0xf
je 0x6b52a451
mov eax, dword [edi + 0x20]
xor dword [edi + 0x78], eax
mov eax, dword [edi + 0x24]
xor dword [edi + 0x7c], eax
mov eax, dword [edi + 0x28]
xor dword [edi + 0x80], eax
mov eax, dword [edi + 0x2c]
xor dword [edi + 0x84], eax
mov eax, dword [edi + 8]
mov dword [esp + 8], eax
lea eax, [esp + 0x58]
mov dword [esp + 4], eax
lea eax, [edi + 0x78]
mov dword [esp], eax
call dword [edi]
mov esi, dword [esp + 0x2c]
lea eax, [esi + 4]
cmp ebp, eax
lea eax, [ebp + 4]
setae dl
cmp esi, eax
setae al
or eax, edx
lea edx, [ebx - 1]
cmp edx, 2
seta dl
test al, dl
je 0x6b52a53c
mov eax, esi
or eax, ebp
test al, 3
jne 0x6b52a53c
mov edx, ebx
mov eax, dword [esp + 0x58]
xor eax, dword [ebp]
shr edx, 2
mov dword [esi], eax
cmp edx, 1
je 0x6b52a39b
mov eax, dword [ebp + 4]
xor eax, dword [esp + 0x5c]
mov dword [esi + 4], eax
cmp edx, 3
jne 0x6b52a39b
mov eax, dword [ebp + 8]
xor eax, dword [esp + 0x60]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x9c]
and eax, 0xc
cmp ebx, eax
je 0x6b52a3e1
mov esi, dword [esp + 0x2c]
movzx edx, byte [ebp + eax]
xor dl, byte [esp + eax + 0x58]
mov byte [esi + eax], dl
lea edx, [eax + 1]
cmp ebx, edx
jbe 0x6b52a3e1
movzx ecx, byte [ebp + eax + 1]
lea edx, [eax + 2]
xor cl, byte [esp + eax + 0x59]
mov byte [esi + eax + 1], cl
cmp ebx, edx
jbe 0x6b52a3e1
movzx ecx, byte [ebp + eax + 2]
xor cl, byte [esp + eax + 0x5a]
mov byte [esi + eax + 2], cl
mov dword [esp + 0x58], 0
lea edx, [esp + 0x58]
mov eax, ebp
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
cmp ebx, 4
jae 0x6b52a4f6
xor ecx, ecx
test bl, 2
jne 0x6b52a526
test bl, 1
jne 0x6b52a51a
mov byte [esp + ebx + 0x58], pe_nt_image_headers32
mov eax, dword [esp + 0x58]
xor dword [edi + 0x88], eax
mov eax, dword [esp + 0x5c]
xor dword [edi + 0x8c], eax
mov eax, dword [esp + 0x60]
xor dword [edi + 0x90], eax
mov eax, dword [esp + 0x64]
xor dword [edi + 0x94], eax
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov dword [edi + 0x54], edx
mov dword [edi + 0x50], eax
mov eax, 1
mov esi, dword [esp + 0x6c]
xor esi, dword [sym.imp.libssp_0.dll___stack_chk_guard]
jne 0x6b52a66e
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [edi + 0x10]
test esi, esi
je 0x6b52a15f
mov eax, dword [esp + 0x48]
xor edx, edx
shr eax, 1
je 0x6b52a4a3
mov esi, dword [esp + 0x2c]
lea esi, [esi]
add edx, 1
shr eax, 1
jne 0x6b52a498
mov dword [esp + 0x2c], esi
mov eax, edi
call sym._ocb_lookup_l
test eax, eax
je 0x6b52a667
lea eax, [edi + 0x88]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x40]
mov dword [esp + 0x18], eax
lea eax, [edi + 0x78]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x50]
add eax, 1
mov dword [esp + 0x10], eax
mov eax, dword [edi + 8]
mov dword [esp], ebp
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
call dword [edi + 0x10]
jmp 0x6b52a2f7
mov edx, ebx
xor eax, eax
and edx, 0xfffffffc
mov ecx, dword [ebp + eax]
mov dword [esp + eax + 0x58], ecx
add eax, 4
cmp eax, edx
jb 0x6b52a4fd
lea esi, [esp + 0x58]
lea edx, [esi + eax]
add eax, ebp
jmp 0x6b52a410
movzx eax, byte [eax + ecx]
mov byte [edx + ecx], al
jmp 0x6b52a424
movzx ecx, word [eax]
mov word [edx], cx
mov ecx, 2
test bl, 1
je 0x6b52a424
jmp 0x6b52a51a
mov esi, dword [esp + 0x2c]
movzx eax, byte [ebp]
xor al, byte [esp + 0x58]
mov byte [esi], al
cmp ebx, 1
je 0x6b52a3e1
movzx eax, byte [ebp + 1]
xor al, byte [esp + 0x59]
mov byte [esi + 1], al
cmp ebx, 2
je 0x6b52a3e1
movzx eax, byte [ebp + 2]
xor al, byte [esp + 0x5a]
mov byte [esi + 2], al
cmp ebx, 3
je 0x6b52a3e1
movzx eax, byte [ebp + 3]
xor al, byte [esp + 0x5b]
mov byte [esi + 3], al
cmp ebx, 4
je 0x6b52a3e1
movzx eax, byte [ebp + 4]
xor al, byte [esp + 0x5c]
mov byte [esi + 4], al
cmp ebx, 5
je 0x6b52a3e1
movzx eax, byte [ebp + 5]
xor al, byte [esp + 0x5d]
mov byte [esi + 5], al
cmp ebx, 6
je 0x6b52a3e1
movzx eax, byte [ebp + 6]
xor al, byte [esp + 0x5e]
mov byte [esi + 6], al
cmp ebx, 7
je 0x6b52a3e1
movzx eax, byte [ebp + 7]
xor al, byte [esp + 0x5f]
mov byte [esi + 7], al
cmp ebx, 8
je 0x6b52a3e1
movzx eax, byte [ebp + 8]
xor al, byte [esp + 0x60]
mov byte [esi + 8], al
cmp ebx, 9
je 0x6b52a3e1
movzx eax, byte [ebp + 9]
xor al, byte [esp + 0x61]
mov byte [esi + 9], al
cmp ebx, 0xa
je 0x6b52a3e1
movzx eax, byte [ebp + 0xa]
xor al, byte [esp + 0x62]
mov byte [esi + 0xa], al
cmp ebx, 0xb
je 0x6b52a3e1
movzx eax, byte [ebp + 0xb]
xor al, byte [esp + 0x63]
mov byte [esi + 0xb], al
cmp ebx, 0xc
je 0x6b52a3e1
movzx eax, byte [ebp + 0xc]
xor al, byte [esp + 0x64]
mov byte [esi + 0xc], al
cmp ebx, 0xd
je 0x6b52a3e1
movzx eax, byte [ebp + 0xd]
xor al, byte [esp + 0x65]
mov byte [esi + 0xd], al
cmp ebx, 0xf
jne 0x6b52a3e1
movzx eax, byte [ebp + 0xe]
xor al, byte [esp + 0x66]
mov byte [esi + 0xe], al
jmp 0x6b52a3e1
xor eax, eax
jmp 0x6b52a464
call sym.___stack_chk_fail
lea esi, [esi]
lea esi, [esi]