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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov byte [esp + 0x17], dl
mov ebp, dword [edi + 8]
mov eax, dword [ebp + 4]
mov dword [esp + 0x1c], eax
mov al, byte [edi]
test al, al
je 0x67585c
cmp al, 3
jb 0x6758a2
call fcn.0066ac10
test eax, eax
jne 0x675d94
cmp byte [edi], al
jne 0x675d94
mov ebx, dword [edi + 0x74]
movsx eax, byte [edi + 0x44]
movzx ecx, word [edi + 0x46]
mov dword [esp + 0x20], eax
movzx eax, word [ebx + 0x18]
mov dword [esp + 0x24], ecx
cmp eax, ecx
ja 0x6758cd
push 0x88c2c4
push 0x13571
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.006575b0
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 0x88c2c4
push 0x13568
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.006575b0
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [ebx + 0x1a]
movzx esi, cx
and esi, eax
add esi, dword [ebx + 0x38]
cmp dword [ebx + 0x14], 0
mov dword [esp + 0x2c], esi
jge 0x675924
mov ecx, ebx
call fcn.0066c1d0
test eax, eax
je 0x675924
push 0x88c2c4
push 0x13575
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.006575b0
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [ebx + 0x18]
add eax, dword [ebx + 0x40]
cmp esi, eax
jae 0x67595a
push 0x88c2c4
push 0x13578
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.006575b0
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [esp + 0x17]
shr al, 1
and al, 1
mov byte [esp + 0x17], al
je 0x6759b6
cmp byte [ebx + 8], 0
je 0x6759a7
mov eax, dword [ebx + 0x4c]
push esi
push ebx
call eax
mov ecx, dword [esp + 0x24]
add esp, 8
movzx esi, ax
mov eax, 0xaaaaaaab
mov ecx, dword [ecx + 0x28]
add ecx, ecx
mul ecx
mov eax, dword [ebx + 0x14]
add eax, 2
shr edx, 1
add eax, esi
cmp eax, edx
jg 0x6759a7
cmp word [ebx + 0x18], 1
je 0x6759a7
mov byte [esp + 0x17], 2
jmp 0x6759b6
mov ecx, edi
call fcn.0066a930
test eax, eax
jne 0x675d94
cmp byte [ebx + 8], 0
lea esi, [edi + 1]
jne 0x6759f6
and byte [esi], 0xf1
xor eax, eax
mov word [edi + 0x32], ax
cmp byte [edi], al
jne 0x6759e7
movzx ecx, word [edi + 0x46]
test cx, cx
je 0x6759e7
mov eax, dword [edi + 0x74]
cmp byte [eax + 8], 0
je 0x6759e7
lea eax, [ecx - 1]
mov word [edi + 0x46], ax
jmp 0x6759f6
mov ecx, edi
call fcn.006709c0
test eax, eax
jne 0x675d94
test byte [esi], 0x20
je 0x675a28
mov eax, dword [esp + 0x1c]
mov edx, dword [edi + 0x40]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x675a24
lea esp, [esp]
cmp ecx, edi
je 0x675a1d
test edx, edx
je 0x675a94
cmp dword [ecx + 0x40], edx
je 0x675a94
mov ecx, dword [ecx + 0x18]
test ecx, ecx
jne 0x675a10
and byte [edi + 1], 0xdf
cmp dword [edi + 0x70], 0
jne 0x675a73
cmp byte [ebp + 0xb], 0
je 0x675a73
mov eax, dword [ebp + 4]
mov edx, dword [edi + 0x20]
mov esi, dword [edi + 0x24]
mov ecx, dword [edi + 0x40]
mov byte [ebp + 0xb], 0
mov eax, dword [eax + 8]
test eax, eax
je 0x675a73
jmp 0x675a50
test byte [eax + 1], 0x10
je 0x675a6c
mov byte [ebp + 0xb], 1
cmp dword [eax + 0x40], ecx
jne 0x675a6c
cmp dword [eax + 0x20], edx
jne 0x675a6c
cmp dword [eax + 0x24], esi
jne 0x675a6c
mov byte [eax], 1
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x675a50
mov ecx, dword [ebx + 0x48]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x675aad
mov eax, dword [edx + 0x1c]
cmp eax, dword [ecx + 0x18]
jb 0x675aad
cmp dword [edx + 0x68], 0
je 0x675ada
call fcn.00664b50
jmp 0x675ad2
test ecx, ecx
je 0x675a24
push edi
call fcn.0066aa40
add esp, 4
test eax, eax
je 0x675a28
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edx + 0x2c]
test eax, eax
jne 0x675d94
mov eax, dword [edx + 0x9c]
cmp eax, dword [edx + 0xa8]
jbe 0x675acd
call fcn.00666590
jmp 0x675ad2
call fcn.00666500
test eax, eax
jne 0x675d94
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x30]
push eax
mov eax, dword [ebx + 0x50]
push esi
push ebx
call eax
movzx eax, word [esp + 0x4c]
add esp, 0xc
cmp eax, dword [esp + 0x3c]
je 0x675b0b
lea eax, [esp + 0x30]
mov edx, esi
push eax
mov ecx, ebx
call fcn.00671a70
add esp, 4
jmp 0x675b0d
xor eax, eax
mov edx, dword [esp + 0x24]
mov ecx, ebx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
movzx eax, word [esp + 0x46]
push eax
call fcn.00672030
mov eax, dword [esp + 0x20]
add esp, 8
test eax, eax
jne 0x675d94
cmp byte [ebx + 8], al
jne 0x675c73
mov esi, dword [edi + 0x74]
cmp dword [esi + 0x14], eax
jge 0x675b56
mov ecx, esi
call fcn.0066c1d0
test eax, eax
jne 0x675d94
movsx eax, byte [edi + 0x44]
mov ecx, dword [esp + 0x20]
dec eax
cmp ecx, eax
jge 0x675b69
mov eax, dword [edi + ecx*4 + 0x7c]
jmp 0x675b6c
mov eax, dword [edi + 0x74]
mov eax, dword [eax + 4]
movzx ecx, word [esi + 0x18]
mov edx, dword [esi + 0x38]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x40]
mov ax, word [eax + ecx*2 - 2]
mov ch, al
mov cl, ah
movzx eax, word [esi + 0x1a]
movzx ebp, cx
and ebp, eax
lea eax, [edx + 4]
add ebp, edx
cmp ebp, eax
jae 0x675bc3
push 0x88c2c4
push 0x135d3
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.006575b0
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x4c]
push ebp
push esi
call eax
mov ecx, dword [esi + 0x48]
add esp, 8
movzx eax, ax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
mov eax, dword [eax + 0x54]
mov dword [esp + 0x1c], eax
je 0x675c00
mov eax, dword [edx + 0x1c]
cmp eax, dword [ecx + 0x18]
jb 0x675c00
cmp dword [edx + 0x68], 0
je 0x675c29
call fcn.00664b50
jmp 0x675c21
mov eax, dword [edx + 0x2c]
test eax, eax
jne 0x675c4b
mov eax, dword [edx + 0x9c]
cmp eax, dword [edx + 0xa8]
jbe 0x675c1c
call fcn.00666590
jmp 0x675c21
call fcn.00666500
mov dword [esp + 0x18], eax
test eax, eax
jne 0x675c4f
push dword [esp + 0x28]
mov eax, dword [esp + 0x30]
mov ecx, ebx
push dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
add eax, 4
push eax
lea eax, [ebp - 4]
push eax
call fcn.00672150
add esp, 0x10
mov dword [esp + 0x18], eax
movzx edx, word [esi + 0x18]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x30]
dec edx
mov ecx, esi
call fcn.00672030
mov eax, dword [esp + 0x20]
add esp, 8
test eax, eax
jne 0x675d94
mov eax, dword [edi + 0x74]
mov eax, dword [eax + 0x14]
lea ecx, [eax + eax*2]
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0x28]
add eax, eax
cmp ecx, eax
jg 0x675c8c
xor esi, esi
jmp 0x675c9d
mov ecx, edi
call fcn.00674830
mov esi, eax
test esi, esi
jne 0x675d92
movsx eax, byte [edi + 0x44]
mov ebp, esi
mov edx, esi
mov ecx, esi
cmp eax, dword [esp + 0x20]
jle 0x675d28
mov eax, dword [edi + 0x74]
mov ecx, dword [eax + 0x48]
test byte [ecx + 0x1c], 0x20
je 0x675cc0
call fcn.00664480
jmp 0x675cc5
call fcn.00660770
mov cl, byte [edi + 0x44]
mov ebp, dword [esp + 0x20]
dec cl
movsx eax, cl
mov byte [edi + 0x44], cl
cmp eax, ebp
jle 0x675d0f
jmp 0x675ce0
movsx eax, cl
dec cl
mov eax, dword [edi + eax*4 + 0x78]
mov byte [edi + 0x44], cl
test eax, eax
je 0x675d05
mov ecx, dword [eax + 0x48]
test byte [ecx + 0x1c], 0x20
je 0x675d00
call fcn.00664480
jmp 0x675d05
call fcn.00660770
mov cl, byte [edi + 0x44]
movsx eax, cl
cmp eax, ebp
jg 0x675ce0
movsx eax, cl
mov ecx, edi
mov eax, dword [edi + eax*4 + 0x78]
mov dword [edi + 0x74], eax
call fcn.00674830
mov esi, eax
mov ebp, eax
mov edx, eax
mov ecx, eax
test ebp, ebp
jne 0x675d92
cmp byte [esp + 0x17], 1
jbe 0x675d70
mov byte [edi], 2
movzx eax, word [ebx + 0x18]
cmp dword [esp + 0x24], eax
jb 0x675d5d
mov dword [edi + 4], 0xffffffff
mov esi, edx
mov ax, word [ebx + 0x18]
dec ax
mov word [edi + 0x46], ax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, ecx
mov dword [edi + 4], 1
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.0066fc80
cmp byte [esp + 0x17], 0
mov esi, eax
je 0x675d8a
mov ecx, edi
call fcn.0066a8d0
mov byte [edi], 3
xor eax, eax
cmp esi, 0x10
cmove esi, eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret