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

Disassembly:
sub esp, 0x34
push ebx
push ebp
mov ebp, dword [esp + 0x44]
mov ebx, ecx
push esi
mov esi, edx
mov dword [esp + 0x14], ebx
push edi
cmp byte [ebx + 0x42], 1
mov edi, dword [esp + 0x48]
mov dword [esp + 0x2c], esi
jne 0x495566
mov al, byte [ebx + 0x40]
test al, 2
je 0x495566
cmp byte [ebx + 0x45], 0
je 0x495566
mov edx, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x14]
cmp edx, edi
jne 0x495550
cmp ecx, ebp
jne 0x495550
mov eax, dword [esp + 0x54]
mov dword [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
test al, 8
je 0x495566
cmp ecx, ebp
jl 0x495603
jg 0x495566
cmp edx, edi
jb 0x495603
test esi, esi
je 0x4955e7
mov edx, dword [esi]
movzx ecx, word [edx + 8]
movzx eax, word [edx + 6]
add ecx, eax
cmp ecx, 0xd
ja 0x4955d5
mov eax, dword [esi + 8]
movzx ebx, word [eax + 8]
mov eax, dword [edx + 0x10]
xor edx, edx
mov cl, byte [eax]
test cl, cl
sete dl
xor eax, eax
test cl, cl
setne al
lea edx, [edx*2 - 1]
lea eax, [eax*2 - 1]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edx
test bl, 4
je 0x4955c0
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], 0x4a1520
mov byte [esi + 7], 0
jmp 0x4955ef
test bl, 0x19
jne 0x4955d5
mov eax, dword [esi]
mov dword [esp + 0x1c], 0x4a1770
cmp dword [eax + 0x14], 0
je 0x4955dd
mov dword [esp + 0x1c], 0x4a1500
mov ebx, dword [esp + 0x18]
mov byte [esi + 7], 0
jmp 0x4955ef
mov dword [esp + 0x1c], 0
mov ecx, ebx
call fcn.004951d0
test eax, eax
jne 0x495a36
cmp byte [ebx + 0x42], al
jne 0x495617
mov eax, dword [esp + 0x54]
mov dword [eax], 0xffffffff
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov ecx, 1
sub ecx, dword [esp + 0x50]
mov dword [esp + 0x38], ecx
movsx eax, byte [ebx + 0x44]
xor ebp, ebp
mov dword [esp + 0x30], ebp
mov esi, dword [ebx + eax*4 + 0x78]
mov dword [esp + 0x20], esi
movzx ebx, word [esi + 0x12]
lea edx, [esi + 0x14]
dec ebx
mov dword [esp + 0x28], edx
mov edi, ebx
mov dword [esp + 0x34], ebx
sar edi, cl
mov ecx, dword [esp + 0x18]
mov word [ecx + eax*2 + 0x50], di
lea eax, [esi + 0x40]
mov dword [esp + 0x24], eax
cmp dword [esp + 0x1c], ebp
jne 0x495770
movzx edx, word [edx]
mov cl, byte [esi + 3]
mov eax, dword [eax]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], edx
mov byte [esp + 0x17], cl
mov ax, word [eax + edi*2]
mov ch, al
mov cl, ah
movzx eax, dx
movzx ecx, cx
and ecx, eax
add ecx, dword [esi + 0x44]
cmp byte [esp + 0x17], 0
je 0x4956af
cmp byte [ecx], 0x80
jb 0x4956ae
mov eax, dword [esi + 0x3c]
nop word [eax + eax]
inc ecx
cmp ecx, eax
jae 0x495917
cmp byte [ecx], 0x80
jae 0x4956a0
inc ecx
lea edx, [esp + 0x3c]
call fcn.004847b0
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
cmp ecx, dword [esp + 0x4c]
jg 0x495712
jl 0x4956d0
mov edx, dword [esp + 0x48]
cmp eax, edx
jae 0x495716
lea ebp, [edi + 1]
cmp ebp, ebx
jle 0x495729
or esi, 0xffffffff
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x18]
cmp byte [eax + 5], 0
jne 0x49596c
mov esi, eax
movzx eax, word [esi + 0x12]
cmp ebp, eax
jl 0x49589d
movzx ecx, byte [esi + 6]
mov eax, dword [esi + 0x38]
mov edx, dword [ecx + eax + 8]
jmp 0x4958b5
mov edx, dword [esp + 0x48]
cmp ecx, dword [esp + 0x4c]
jl 0x495742
jg 0x495722
cmp eax, edx
jbe 0x495742
lea ebx, [edi - 1]
cmp ebp, ebx
jg 0x49573b
mov eax, dword [esp + 0x34]
lea edi, [ebx + ebp]
mov edx, dword [esp + 0x30]
sar edi, 1
jmp 0x495678
mov esi, 1
jmp 0x4956da
mov ebx, dword [esp + 0x18]
or byte [ebx + 0x40], 2
mov dword [ebx + 0x10], eax
movsx eax, byte [ebx + 0x44]
mov dword [ebx + 0x14], ecx
mov word [ebx + eax*2 + 0x50], di
cmp byte [esi + 5], 0
jne 0x49593d
mov ecx, dword [esp + 0x24]
mov ebp, edi
mov edx, dword [esp + 0x28]
jmp 0x4956f6
mov eax, dword [eax]
mov ax, word [eax + edi*2]
mov ch, al
mov cl, ah
movzx eax, word [edx]
movzx ecx, cx
and ecx, eax
mov eax, dword [esp + 0x20]
add ecx, dword [esi + 0x44]
movzx eax, byte [eax + 8]
movzx edx, byte [ecx]
lea esi, [ecx + 1]
cmp edx, eax
ja 0x4957ab
push dword [esp + 0x2c]
push esi
push edx
call dword [esp + 0x28]
add esp, 0xc
mov esi, eax
jmp 0x495865
mov al, byte [esi]
test al, al
js 0x4957df
and edx, 0x7f
movzx eax, al
shl edx, 7
add edx, eax
mov eax, dword [esp + 0x20]
movzx eax, word [eax + 0xa]
cmp edx, eax
ja 0x4957df
push dword [esp + 0x2c]
lea eax, [ecx + 2]
push eax
push edx
call dword [esp + 0x28]
add esp, 0xc
mov esi, eax
jmp 0x495865
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
movzx eax, byte [edx + 7]
lea esi, [ebx + 0x10]
sub ecx, eax
mov eax, dword [edx + 0x50]
push esi
push ecx
push edx
call eax
mov esi, dword [esi]
add esp, 0xc
cmp esi, 2
jl 0x495a0c
lea eax, [esi + 0x12]
cdq
push edx
push eax
call fcn.00480960
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4959ef
mov eax, dword [esp + 0x18]
xor edx, edx
push 2
push ebx
push esi
movsx ecx, byte [eax + 0x44]
mov word [eax + ecx*2 + 0x50], di
mov ecx, eax
call fcn.00494dc0
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x4959ce
push dword [esp + 0x2c]
push ebx
push esi
call dword [esp + 0x28]
add esp, 0xc
mov esi, eax
push ebx
call fcn.00480d40
mov ebx, dword [esp + 0x38]
add esp, 4
mov ebp, dword [esp + 0x30]
test esi, esi
jns 0x495872
lea ebp, [edi + 1]
mov dword [esp + 0x30], ebp
jmp 0x49587f
jle 0x495991
lea ebx, [edi - 1]
mov dword [esp + 0x34], ebx
cmp ebp, ebx
jg 0x4956da
mov esi, dword [esp + 0x20]
lea edi, [ebx + ebp]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
sar edi, 1
jmp 0x495770
mov eax, dword [ecx]
mov ax, word [eax + ebp*2]
mov ch, al
mov cl, ah
movzx eax, word [edx]
movzx ecx, cx
and ecx, eax
mov eax, dword [esi + 0x38]
mov edx, dword [ecx + eax]
movsx eax, byte [ebx + 0x44]
mov word [ebx + eax*2 + 0x50], bp
mov cl, byte [ebx + 0x44]
mov esi, dword [ebx + 4]
cmp cl, 0x13
jge 0x49595d
and byte [ebx + 0x40], 0xf9
xor eax, eax
mov word [ebx + 0x24], ax
lea eax, [ecx + 1]
mov byte [ebx + 0x44], al
movsx eax, cl
xor ecx, ecx
bswap edx
mov word [ebx + eax*2 + 0x52], cx
mov ecx, esi
movzx eax, byte [ebx + 0x41]
push eax
movsx eax, byte [ebx + 0x44]
add eax, 0x1e
push ebx
lea eax, [ebx + eax*4]
push eax
call fcn.004923a0
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x495a2a
mov ecx, dword [esp + 0x38]
jmp 0x495624
push 0x6f29f0
push 0xe8d0
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.00482f10
add esp, 0x10
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov eax, dword [esp + 0x54]
xor ebp, ebp
mov dword [eax], 0
xor eax, eax
and byte [ebx + 0x40], 0xf9
mov word [ebx + 0x24], ax
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
push 0x6f29f0
push 0xe759
jmp 0x495a16
movsx eax, byte [ebx + 0x44]
xor ebp, ebp
mov word [ebx + eax*2 + 0x50], di
mov eax, dword [esp + 0x54]
mov dword [eax], esi
xor eax, eax
and byte [ebx + 0x40], 0xf9
mov word [ebx + 0x24], ax
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov ebx, dword [esp + 0x18]
xor ebp, ebp
mov eax, dword [esp + 0x54]
mov ecx, 0xb
mov dword [eax], 0
movsx eax, byte [ebx + 0x44]
mov word [ebx + eax*2 + 0x50], di
mov eax, dword [esp + 0x2c]
cmp byte [eax + 7], 0
cmovne ebp, ecx
xor eax, eax
and byte [ebx + 0x40], 0xf9
mov word [ebx + 0x24], ax
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
push ebx
call fcn.00480d40
mov ebx, dword [esp + 0x1c]
xor eax, eax
add esp, 4
and byte [ebx + 0x40], 0xf9
mov word [ebx + 0x24], ax
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov ebx, dword [esp + 0x18]
xor eax, eax
mov ebp, 7
and byte [ebx + 0x40], 0xf9
mov word [ebx + 0x24], ax
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
push 0x6f29f0
push 0xe919
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.00482f10
mov ebp, 0xb
add esp, 0x10
xor eax, eax
and byte [ebx + 0x40], 0xf9
mov word [ebx + 0x24], ax
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret