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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x6c
mov ebx, dword [esp + 0x80]
mov ebp, dword [esp + 0x8c]
mov eax, dword [esp + 0x84]
mov esi, dword [esp + 0x88]
shr ebp, 4
mov edx, dword [ebx + 0x50]
mov ecx, dword [ebx + 0x54]
mov edi, ebp
mov dword [esp + 0x34], eax
mov eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
mov dword [esp + 0x5c], eax
xor eax, eax
mov dword [esp + 0x28], ebp
xor ebp, ebp
add edi, edx
adc ebp, ecx
cmp dword [esp + 0x8c], 0xf
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], ebp
jbe 0x6b52a6e1
test ebp, ebp
je 0x6b52a9d6
add edx, 1
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x3c]
mov eax, edx
adc ecx, 0
cmp edi, eax
mov edi, ebp
mov dword [esp + 0x28], eax
sbb edi, ecx
mov dword [esp + 0x2c], ecx
jb 0x6b52a847
mov edi, dword [esp + 0x34]
lea esi, [esi]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ecx, 0
mov ebp, eax
and ebp, 1
jne 0x6b52a738
lea esi, [esi]
shrd eax, edx, 1
add ecx, 1
shr edx, 1
mov ebp, eax
and ebp, 1
je 0x6b52a728
mov edx, ecx
mov eax, ebx
call sym._ocb_lookup_l
test eax, eax
je 0x6b52a9be
mov edx, dword [ebx + 0x78]
mov ebp, dword [ebx + 0x7c]
add edi, 0x10
add esi, 0x10
xor edx, dword [eax]
xor ebp, dword [eax + 4]
mov dword [ebx + 0x7c], ebp
mov ecx, dword [ebx + 0x80]
mov dword [ebx + 0x78], edx
xor ecx, dword [eax + 8]
mov dword [esp + 0x34], edx
mov edx, dword [ebx + 0x84]
xor edx, dword [eax + 0xc]
mov dword [ebx + 0x80], ecx
mov dword [ebx + 0x84], edx
mov eax, edx
mov edx, dword [edi - 0x10]
mov dword [esp + 0x48], edx
mov edx, dword [edi - 0xc]
mov dword [esp + 0x4c], edx
mov edx, dword [edi - 8]
xor dword [esp + 0x4c], ebp
mov dword [esp + 0x50], edx
mov edx, dword [edi - 4]
xor dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x34]
xor dword [esp + 0x54], eax
mov eax, dword [ebx + 0xc]
xor dword [esp + 0x48], edx
mov dword [esp + 8], eax
lea eax, [esp + 0x48]
mov dword [esp + 4], eax
mov dword [esp], eax
call dword [ebx + 4]
mov ebp, dword [ebx + 0x78]
mov ecx, dword [ebx + 0x7c]
mov edx, dword [ebx + 0x80]
mov eax, dword [ebx + 0x84]
xor ecx, dword [esp + 0x4c]
xor eax, dword [esp + 0x54]
xor ebp, dword [esp + 0x48]
xor edx, dword [esp + 0x50]
mov dword [esp + 0x4c], ecx
xor dword [ebx + 0x8c], ecx
xor dword [ebx + 0x94], eax
xor dword [ebx + 0x88], ebp
xor dword [ebx + 0x90], edx
mov dword [esp + 0x54], eax
mov dword [esi - 0xc], ecx
mov dword [esi - 4], eax
mov eax, dword [esp + 0x38]
mov dword [esi - 0x10], ebp
mov dword [esi - 8], edx
mov dword [esp + 0x48], ebp
add dword [esp + 0x28], 1
mov ecx, dword [esp + 0x28]
adc dword [esp + 0x2c], 0
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x3c]
cmp eax, ecx
mov eax, edx
sbb eax, dword [esp + 0x2c]
jae 0x6b52a710
mov dword [esp + 0x34], edi
mov ebp, dword [esp + 0x8c]
and ebp, 0xf
je 0x6b52a9ab
mov eax, dword [ebx + 0x20]
xor dword [ebx + 0x78], eax
mov eax, dword [ebx + 0x24]
xor dword [ebx + 0x7c], eax
mov eax, dword [ebx + 0x28]
xor dword [ebx + 0x80], eax
mov eax, dword [ebx + 0x2c]
xor dword [ebx + 0x84], eax
mov eax, dword [ebx + 8]
mov dword [esp + 8], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x28], eax
mov dword [esp + 4], eax
lea eax, [ebx + 0x78]
mov dword [esp], eax
call dword [ebx]
mov edi, dword [esp + 0x34]
lea eax, [esi + 4]
cmp edi, eax
lea eax, [edi + 4]
setae dl
cmp esi, eax
setae al
or eax, edx
lea edx, [ebp - 1]
cmp edx, 2
seta dl
test al, dl
je 0x6b52aaa2
mov eax, esi
or eax, edi
test al, 3
jne 0x6b52aaa2
mov edx, ebp
mov eax, dword [esp + 0x48]
xor eax, dword [edi]
shr edx, 2
mov dword [esi], eax
cmp edx, 1
je 0x6b52a8ee
mov eax, dword [edi + 4]
xor eax, dword [esp + 0x4c]
mov dword [esi + 4], eax
cmp edx, 3
jne 0x6b52a8ee
mov eax, dword [edi + 8]
xor eax, dword [esp + 0x50]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x8c]
and eax, 0xc
cmp ebp, eax
je 0x6b52a935
mov edi, dword [esp + 0x34]
movzx edx, byte [edi + eax]
xor dl, byte [esp + eax + 0x48]
mov byte [esi + eax], dl
lea edx, [eax + 1]
cmp ebp, edx
jbe 0x6b52a935
movzx ecx, byte [edi + eax + 1]
lea edx, [eax + 2]
xor cl, byte [esp + eax + 0x49]
mov byte [esi + eax + 1], cl
cmp ebp, edx
jbe 0x6b52a935
movzx edi, byte [edi + eax + 2]
mov ecx, edi
xor cl, byte [esp + eax + 0x4a]
mov byte [esi + eax + 2], cl
mov dword [esp + 0x48], 0
mov edx, dword [esp + 0x28]
mov eax, esi
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
cmp ebp, 4
jae 0x6b52aa5a
xor ecx, ecx
test ebp, 2
jne 0x6b52aa89
test ebp, 1
jne 0x6b52aa7d
mov byte [esp + ebp + 0x48], pe_nt_image_headers32
mov eax, dword [esp + 0x48]
xor dword [ebx + 0x88], eax
mov eax, dword [esp + 0x4c]
xor dword [ebx + 0x8c], eax
mov eax, dword [esp + 0x50]
xor dword [ebx + 0x90], eax
mov eax, dword [esp + 0x54]
xor dword [ebx + 0x94], eax
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov dword [ebx + 0x54], edx
mov dword [ebx + 0x50], eax
mov eax, 1
mov esi, dword [esp + 0x5c]
xor esi, dword [sym.imp.libssp_0.dll___stack_chk_guard]
jne 0x6b52abd3
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x6b52a6e1
mov eax, dword [esp + 0x38]
xor edx, edx
shr eax, 1
je 0x6b52aa07
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x34]
lea esi, [esi]
nop
add edx, 1
shr eax, 1
jne 0x6b52a9f8
mov dword [esp + 0x28], ebp
mov dword [esp + 0x34], edi
mov eax, ebx
call sym._ocb_lookup_l
test eax, eax
je 0x6b52abcc
lea eax, [ebx + 0x88]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x40]
mov dword [esp + 0x18], eax
lea eax, [ebx + 0x78]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x50]
add eax, 1
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 4], esi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call dword [ebx + 0x10]
jmp 0x6b52a847
mov edx, ebp
xor eax, eax
and edx, 0xfffffffc
mov edi, dword [esi + eax]
mov ecx, dword [esp + 0x28]
mov dword [ecx + eax], edi
add eax, 4
cmp eax, edx
jb 0x6b52aa61
mov edx, ecx
add edx, eax
add eax, esi
jmp 0x6b52a964
movzx eax, byte [eax + ecx]
mov byte [edx + ecx], al
jmp 0x6b52a97e
movzx ecx, word [eax]
mov word [edx], cx
mov ecx, 2
test ebp, 1
je 0x6b52a97e
jmp 0x6b52aa7d
mov edi, dword [esp + 0x34]
movzx eax, byte [edi]
xor al, byte [esp + 0x48]
mov byte [esi], al
cmp ebp, 1
je 0x6b52a935
movzx eax, byte [edi + 1]
xor al, byte [esp + 0x49]
mov byte [esi + 1], al
cmp ebp, 2
je 0x6b52a935
movzx eax, byte [edi + 2]
xor al, byte [esp + 0x4a]
mov byte [esi + 2], al
cmp ebp, 3
je 0x6b52a935
movzx eax, byte [edi + 3]
xor al, byte [esp + 0x4b]
mov byte [esi + 3], al
cmp ebp, 4
je 0x6b52a935
movzx eax, byte [edi + 4]
xor al, byte [esp + 0x4c]
mov byte [esi + 4], al
cmp ebp, 5
je 0x6b52a935
movzx eax, byte [edi + 5]
xor al, byte [esp + 0x4d]
mov byte [esi + 5], al
cmp ebp, 6
je 0x6b52a935
movzx eax, byte [edi + 6]
xor al, byte [esp + 0x4e]
mov byte [esi + 6], al
cmp ebp, 7
je 0x6b52a935
movzx eax, byte [edi + 7]
xor al, byte [esp + 0x4f]
mov byte [esi + 7], al
cmp ebp, 8
je 0x6b52a935
movzx eax, byte [edi + 8]
xor al, byte [esp + 0x50]
mov byte [esi + 8], al
cmp ebp, 9
je 0x6b52a935
movzx eax, byte [edi + 9]
xor al, byte [esp + 0x51]
mov byte [esi + 9], al
cmp ebp, 0xa
je 0x6b52a935
movzx eax, byte [edi + 0xa]
xor al, byte [esp + 0x52]
mov byte [esi + 0xa], al
cmp ebp, 0xb
je 0x6b52a935
movzx eax, byte [edi + 0xb]
xor al, byte [esp + 0x53]
mov byte [esi + 0xb], al
cmp ebp, 0xc
je 0x6b52a935
movzx eax, byte [edi + 0xc]
xor al, byte [esp + 0x54]
mov byte [esi + 0xc], al
cmp ebp, 0xd
je 0x6b52a935
movzx eax, byte [edi + 0xd]
xor al, byte [esp + 0x55]
mov byte [esi + 0xd], al
cmp ebp, 0xf
jne 0x6b52a935
movzx eax, byte [edi + 0xe]
xor al, byte [esp + 0x56]
mov byte [esi + 0xe], al
jmp 0x6b52a935
xor eax, eax
jmp 0x6b52a9be
call sym.___stack_chk_fail
lea esi, [esi]
nop