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

Disassembly:
push rbx
push rbp
push rsi
push r12
push r14
push r15
sub rsp, 0x48
mov r12, qword [rcx + 0x18]
xor ebp, ebp
xor r15d, r15d
mov esi, r8d
mov rbx, rdx
mov r14, rcx
cmp r8d, 2
jb 0x140032ca7
cmp r8d, dword [rcx + 0x3c]
ja 0x140032ca7
mov qword [rsp + 0x88], rdi
test rdx, rdx
je 0x1400327c2
mov rax, qword [rdx + 0x70]
inc word [rax + 0x36]
mov rax, qword [rax + 0x18]
inc dword [rax + 0x18]
jmp 0x1400327cc
mov edx, esi
call fcn.14002d620
mov rbx, rax
mov rcx, qword [r12 + 0x70]
mov qword [rsp + 0x40], r13
test byte [rcx + 0x34], 4
mov r8, qword [rcx + 0x28]
je 0x140032802
mov edx, dword [rcx + 0x30]
cmp dword [r8 + 0x1c], edx
jb 0x140032802
cmp dword [r8 + 0x80], ebp
je 0x1400327f9
call fcn.140025a60
jmp 0x14003282a
mov dword [rsp + 0x90], ebp
jmp 0x14003283b
mov edi, dword [r8 + 0x2c]
test edi, edi
jne 0x140032bb8
mov eax, dword [r8 + 0xbc]
cmp dword [r8 + 0xb8], eax
jbe 0x140032825
call fcn.140027400
jmp 0x14003282a
call fcn.140027180
mov dword [rsp + 0x90], eax
mov edi, eax
test eax, eax
jne 0x140032bb8
mov rdx, qword [r12 + 0x50]
movzx eax, byte [rdx + 0x26]
movzx r13d, byte [rdx + 0x25]
shl r13d, 8
or r13d, eax
movzx eax, byte [rdx + 0x24]
shl eax, 0x18
shl r13d, 8
or r13d, eax
movzx eax, byte [rdx + 0x27]
or r13d, eax
lea ecx, [r13 + 1]
mov eax, ecx
mov byte [rdx + 0x27], cl
shr eax, 0x18
mov byte [rdx + 0x24], al
mov eax, ecx
shr eax, 0x10
mov byte [rdx + 0x25], al
mov eax, ecx
shr eax, 8
mov byte [rdx + 0x26], al
test byte [r14 + 0x26], 4
je 0x140032908
test rbx, rbx
jne 0x1400328db
mov rax, qword [r14]
lea r8, [rsp + 0x80]
xor r9d, r9d
mov edx, esi
mov rcx, rax
call qword [rax + 0x108]
mov edi, eax
test eax, eax
jne 0x140032c8a
mov rcx, qword [rsp + 0x80]
mov rbx, qword [rcx + 0x10]
cmp esi, dword [rbx + 4]
je 0x1400328db
mov rax, qword [rcx + 8]
mov qword [rbx + 0x50], rax
mov qword [rbx + 0x70], rcx
mov qword [rbx + 0x48], r14
mov dword [rbx + 4], esi
mov byte [rbx + 9], bpl
mov rcx, qword [rbx + 0x70]
call fcn.140027700
mov dword [rsp + 0x90], eax
mov edi, eax
test eax, eax
jne 0x140032bb8
mov rax, qword [rbx + 0x48]
xor edx, edx
mov rcx, qword [rbx + 0x50]
mov r8d, dword [rax + 0x30]
call fcn.14011adb0
cmp byte [r14 + 0x21], bpl
je 0x14003293a
lea rax, [rsp + 0x90]
xor r9d, r9d
mov r8b, 2
mov qword [rsp + 0x20], rax
mov edx, esi
mov rcx, r14
call fcn.14002c080
mov edi, dword [rsp + 0x90]
test edi, edi
jne 0x140032bb8
test r13d, r13d
je 0x140032b15
mov rcx, qword [r12 + 0x50]
lea r8, [rsp + 0x98]
xor r9d, r9d
movzx eax, byte [rcx + 0x22]
movzx r15d, byte [rcx + 0x21]
shl r15d, 8
or r15d, eax
movzx eax, byte [rcx + 0x20]
shl eax, 0x18
shl r15d, 8
or r15d, eax
movzx eax, byte [rcx + 0x23]
or r15d, eax
mov rax, qword [r14]
mov edx, r15d
mov rcx, rax
call qword [rax + 0x108]
mov edi, eax
test eax, eax
jne 0x140032bb8
mov rcx, qword [rsp + 0x98]
mov rbp, qword [rcx + 0x10]
cmp r15d, dword [rbp + 4]
je 0x1400329c8
mov rax, qword [rcx + 8]
mov qword [rbp + 0x50], rax
xor eax, eax
cmp r15d, 1
mov qword [rbp + 0x70], rcx
mov ecx, 0x64
mov qword [rbp + 0x48], r14
cmove eax, ecx
mov dword [rbp + 4], r15d
mov byte [rbp + 9], al
mov rcx, qword [rbp + 0x50]
movzx eax, byte [rcx + 6]
movzx r13d, byte [rcx + 5]
shl r13d, 8
or r13d, eax
movzx eax, byte [rcx + 4]
shl eax, 0x18
shl r13d, 8
or r13d, eax
movzx eax, byte [rcx + 7]
mov ecx, dword [r14 + 0x34]
or r13d, eax
shr ecx, 2
lea eax, [rcx - 2]
cmp r13d, eax
jbe 0x140032a11
mov ecx, 0x11010
call fcn.1400c0050
mov edi, eax
jmp 0x140032bb8
lea eax, [rcx - 8]
cmp r13d, eax
jae 0x140032b15
mov rcx, qword [rbp + 0x70]
call fcn.140027700
mov edi, eax
test eax, eax
jne 0x140032bb8
mov rcx, qword [rbp + 0x50]
lea edx, [r13 + 1]
mov eax, edx
shr eax, 0x18
mov byte [rcx + 4], al
mov eax, edx
shr eax, 0x10
mov byte [rcx + 5], al
mov eax, edx
shr eax, 8
mov byte [rcx + 6], al
mov eax, esi
mov byte [rcx + 7], dl
lea ecx, [r13*4 + 8]
add rcx, qword [rbp + 0x50]
shr eax, 0x18
mov byte [rcx], al
mov eax, esi
shr eax, 0x10
mov byte [rcx + 1], al
mov eax, esi
shr eax, 8
mov byte [rcx + 2], al
mov byte [rcx + 3], sil
test rbx, rbx
je 0x140032ab4
test byte [r14 + 0x26], 4
jne 0x140032ab4
mov rcx, qword [rbx + 0x70]
mov rdx, qword [rcx + 0x28]
cmp byte [rdx + 0x10], dil
jne 0x140032ab4
movzx eax, word [rcx + 0x34]
test al, 2
je 0x140032ab4
cmp dword [rdx + 0x80], edi
jne 0x140032ab4
mov edx, 0xfffb
and ax, dx
or ax, 0x10
mov word [rcx + 0x34], ax
mov r15, qword [r14 + 0x58]
xor edi, edi
test r15, r15
jne 0x140032aed
mov r12d, dword [r14 + 0x3c]
mov ecx, 0x200
call fcn.140016ee0
mov r15, rax
test rax, rax
je 0x140032b07
lea rcx, [rax + 4]
xor edx, edx
mov r8d, 0x1fc
call fcn.14011adb0
mov dword [r15], r12d
mov qword [r14 + 0x58], r15
cmp esi, dword [r15]
ja 0x140032bb8
mov edx, esi
mov rcx, r15
call fcn.140020640
mov edi, eax
jmp 0x140032bb8
mov qword [r14 + 0x58], r15
mov edi, 7
jmp 0x140032bb8
test rbx, rbx
jne 0x140032b5f
mov rax, qword [r14]
lea r8, [rsp + 0x30]
xor r9d, r9d
mov edx, esi
mov rcx, rax
call qword [rax + 0x108]
mov edi, eax
test eax, eax
jne 0x140032c15
mov rcx, qword [rsp + 0x30]
mov rbx, qword [rcx + 0x10]
cmp esi, dword [rbx + 4]
je 0x140032b5f
mov rax, qword [rcx + 8]
mov qword [rbx + 0x50], rax
mov qword [rbx + 0x70], rcx
mov qword [rbx + 0x48], r14
mov dword [rbx + 4], esi
mov byte [rbx + 9], dil
mov rcx, qword [rbx + 0x70]
call fcn.140027700
mov edi, eax
test eax, eax
jne 0x140032bb8
mov rcx, qword [rbx + 0x50]
mov eax, r15d
shr eax, 0x18
mov byte [rcx], al
mov eax, r15d
shr eax, 0x10
mov byte [rcx + 1], al
mov eax, r15d
shr eax, 8
mov byte [rcx + 2], al
mov byte [rcx + 3], r15b
mov rax, qword [rbx + 0x50]
mov dword [rax + 4], edi
mov eax, esi
mov rcx, qword [r12 + 0x50]
shr eax, 0x18
mov byte [rcx + 0x20], al
mov eax, esi
shr eax, 0x10
mov byte [rcx + 0x21], al
mov eax, esi
shr eax, 8
mov byte [rcx + 0x22], al
mov byte [rcx + 0x23], sil
test rbx, rbx
je 0x140032c15
mov r8, qword [rbx + 0x70]
mov byte [rbx], 0
test byte [r8 + 0x34], 0x20
je 0x140032c0d
mov r10, qword [r8 + 0x28]
dec dword [r10 + 0x98]
mov rax, qword [r10 + 0xa8]
mov qword [r8 + 0x20], rax
movsxd rax, dword [r10 + 0xbc]
mov rcx, qword [r10 + 0x48]
mov qword [r10 + 0xa8], r8
mov edx, dword [r8 + 0x30]
mov r8, qword [r8 + 8]
dec edx
mov r9, qword [rcx]
imul rdx, rax
call qword [r9 + Ordinal_145]
jmp 0x140032c15
mov rcx, r8
call fcn.140020d40
test rbp, rbp
je 0x140032c8a
mov r8, qword [rbp + 0x70]
test byte [r8 + 0x34], 0x20
je 0x140032c82
mov r10, qword [r8 + 0x28]
dec dword [r10 + 0x98]
mov rax, qword [r10 + 0xa8]
mov qword [r8 + 0x20], rax
movsxd rax, dword [r10 + 0xbc]
mov rcx, qword [r10 + 0x48]
mov qword [r10 + 0xa8], r8
mov edx, dword [r8 + 0x30]
mov r8, qword [r8 + 8]
dec edx
mov r9, qword [rcx]
imul rdx, rax
call qword [r9 + Ordinal_145]
mov r13, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x88]
add rsp, 0x48
pop r15
pop r14
pop r12
pop rsi
pop rbp
pop rbx
ret
mov rcx, r8
call fcn.140020d40
mov r13, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x88]
add rsp, 0x48
pop r15
pop r14
pop r12
pop rsi
pop rbp
pop rbx
ret
lea rax, [0x140166684]
mov r9d, 0x10fda
lea r8, str.database_corruption
mov qword [rsp + 0x20], rax
lea rdx, str._s_at_line__d_of___.10s_
mov ecx, reloc.Cabinet.dll_FCIAddFile
call fcn.140019dd0
mov eax, reloc.Cabinet.dll_FCIAddFile
add rsp, 0x48
pop r15
pop r14
pop r12
pop rsi
pop rbp
pop rbx
ret