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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
test ebx, ebx
jne 0x4e6b99
cmp byte [esi], 0
jne 0x4e6b90
mov dl, byte [esi + 1]
test dl, 2
je 0x4e6b90
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
mov ebx, dword [ebp + 0x14]
cmp ecx, edi
jne 0x4e6b32
cmp eax, ebx
jne 0x4e6b34
mov eax, dword [ebp + 0x1c]
pop edi
pop esi
pop ebx
mov dword [eax], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
cmp eax, ebx
jg 0x4e6b90
jl 0x4e6b3c
cmp ecx, edi
jae 0x4e6b90
test dl, 8
jne 0x4e6c0a
add ecx, 1
adc eax, 0
cmp ecx, edi
jne 0x4e6b90
cmp eax, ebx
jne 0x4e6b90
mov eax, dword [ebp + 0x1c]
push 0
push esi
mov dword [eax], 0
call fcn.004e7020
add esp, 8
test eax, eax
jne 0x4e6b87
push esi
call fcn.004d15a0
add esp, 4
cmp dword [esi + 0x20], edi
jne 0x4e6b90
cmp dword [esi + 0x24], ebx
jne 0x4e6b90
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x65
jne 0x4e700c
mov dword [ebp - 8], 0
jmp 0x4e6bf4
mov ecx, dword [ebx]
cmp word [ecx + 8], 0xd
ja 0x4e6be9
mov eax, dword [ebx + 4]
movzx edx, word [eax + 8]
mov eax, dword [ecx + 0x10]
mov al, byte [eax]
test al, al
je 0x4e6bbc
test al, 2
jne 0x4e6be9
or al, 0xff
mov cl, 1
jmp 0x4e6bc1
mov al, 1
or cl, 0xff
mov byte [ebx + 0xc], cl
mov byte [ebx + 0xd], al
test dl, 4
je 0x4e6bd5
mov dword [ebp - 8], 0x522c10
jmp 0x4e6bf0
test dl, 0x39
jne 0x4e6be9
mov eax, dword [ebx]
mov dword [ebp - 8], 0x522e40
cmp dword [eax + 0x14], 0
je 0x4e6bf0
mov dword [ebp - 8], 0x514580
mov byte [ebx + 0xb], 0
push esi
call fcn.004d5520
add esp, 4
test eax, eax
je 0x4e6c1c
cmp eax, 0x10
jne 0x4e700c
mov eax, dword [ebp + 0x1c]
pop edi
pop esi
pop ebx
mov dword [eax], 0xffffffff
xor eax, eax
mov esp, ebp
pop ebp
ret
mov edx, 1
lea edi, [esi + 0x74]
sub edx, dword [ebp + 0x18]
mov dword [ebp - 0x24], edx
nop word [eax + eax]
mov ecx, dword [edi]
xor eax, eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], eax
movzx ebx, word [ecx + 0x18]
mov ecx, edx
dec ebx
mov edi, ebx
mov dword [ebp - 0x1c], ebx
sar edi, cl
cmp dword [ebp - 8], 0
mov word [esi + 0x46], di
mov esi, dword [ebp - 0xc]
lea eax, [esi + 0x40]
lea edx, [esi + 0x1a]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], edx
jne 0x4e6d60
movzx edx, word [edx]
mov cl, byte [esi + 3]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edx
mov byte [ebp - 1], cl
mov ax, word [eax + edi*2]
mov ch, al
mov cl, ah
movzx eax, cx
movzx ecx, dx
and eax, ecx
add eax, dword [esi + 0x44]
cmp byte [ebp - 1], 0
je 0x4e6ca6
cmp byte [eax], 0x80
jb 0x4e6ca5
mov ecx, dword [esi + 0x3c]
inc eax
cmp eax, ecx
jae 0x4e6f1c
cmp byte [eax], 0x80
jae 0x4e6c97
inc eax
lea ecx, [ebp - 0x2c]
push ecx
push eax
call fcn.004f7170
mov ecx, dword [ebp - 0x28]
add esp, 8
mov eax, dword [ebp - 0x2c]
cmp ecx, dword [ebp + 0x14]
jg 0x4e6d0e
jl 0x4e6cc7
mov edx, dword [ebp + 0x10]
cmp eax, edx
jae 0x4e6d11
lea edx, [edi + 1]
mov dword [ebp - 0x14], edx
cmp edx, ebx
jle 0x4e6d26
mov ebx, dword [ebp - 0x10]
or esi, 0xffffffff
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp + 8]
cmp byte [eax + 8], 0
jne 0x4e6f74
mov esi, eax
mov edi, dword [ebp - 0x10]
movzx eax, word [esi + 0x18]
cmp edx, eax
jl 0x4e6e9e
movzx ecx, byte [esi + 9]
mov eax, dword [esi + 0x38]
mov edx, dword [ecx + eax + 8]
jmp 0x4e6eb6
mov edx, dword [ebp + 0x10]
cmp ecx, dword [ebp + 0x14]
jl 0x4e6d43
jg 0x4e6d1c
cmp eax, edx
jbe 0x4e6d43
mov edx, dword [ebp - 0x14]
lea ebx, [edi - 1]
cmp edx, ebx
jg 0x4e6d36
mov eax, dword [ebp - 0x1c]
lea edi, [ebx + edx]
mov edx, dword [ebp - 0x20]
sar edi, 1
jmp 0x4e6c76
mov eax, dword [ebp - 0x10]
mov esi, 1
mov dword [ebp - 0x10], eax
jmp 0x4e6cda
mov ebx, dword [ebp + 8]
mov word [ebx + 0x46], di
cmp byte [esi + 8], 0
jne 0x4e6f46
mov ecx, dword [ebp - 0x18]
mov edx, edi
mov dword [ebp - 0x14], edx
jmp 0x4e6cef
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 [ebp - 0xc]
add ecx, dword [esi + 0x44]
movzx eax, byte [eax + 0xb]
movzx edx, byte [ecx]
lea esi, [ecx + 1]
cmp edx, eax
ja 0x4e6d98
push dword [ebp + 0xc]
push esi
push edx
call dword [ebp - 8]
add esp, 0xc
mov esi, eax
jmp 0x4e6e68
mov al, byte [esi]
test al, al
js 0x4e6dc9
and edx, 0x7f
movzx eax, al
shl edx, 7
add edx, eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0xe]
cmp edx, eax
ja 0x4e6dc9
push dword [ebp + 0xc]
lea eax, [ecx + 2]
push eax
push edx
call dword [ebp - 8]
add esp, 0xc
mov esi, eax
jmp 0x4e6e68
mov edx, dword [ebp - 0xc]
mov ebx, dword [ebp + 8]
movzx eax, byte [edx + 0xa]
lea esi, [ebx + 0x20]
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 0x4e6fe3
mov ecx, dword [ebx + 0x14]
xor edx, edx
mov eax, esi
div dword [ecx + 0x24]
cmp eax, dword [ecx + 0x2c]
ja 0x4e6fe3
lea eax, [esi + 0x12]
cdq
push edx
push eax
call fcn.004faca0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4e6fce
mov eax, dword [ebp + 8]
push 0
push ebx
push esi
push 0
push eax
mov word [eax + 0x46], di
call fcn.004bec10
mov ecx, dword [ebp + 8]
xorps xmm0, xmm0
movups xmmword [ebx + esi], xmm0
mov word [ebx + esi + 0x10], 0
add esp, 0x14
mov dword [ebp - 0x20], eax
and byte [ecx + 1], 0xfb
test eax, eax
jne 0x4e6fb2
push eax
push dword [ebp + 0xc]
push ebx
push esi
call fcn.005145a0
push ebx
mov esi, eax
call fcn.004b09e0
mov ebx, dword [ebp - 0x1c]
add esp, 0x14
test esi, esi
jns 0x4e6e74
lea edx, [edi + 1]
mov dword [ebp - 0x14], edx
jmp 0x4e6e83
jle 0x4e6f8c
mov edx, dword [ebp - 0x14]
lea ebx, [edi - 1]
mov dword [ebp - 0x1c], ebx
cmp edx, ebx
jg 0x4e6cda
mov esi, dword [ebp - 0xc]
lea edi, [ebx + edx]
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
sar edi, 1
jmp 0x4e6d60
mov eax, dword [ecx]
mov ax, word [eax + edx*2]
mov ch, al
mov cl, ah
movzx eax, word [edi]
movzx ecx, cx
and ecx, eax
mov eax, dword [esi + 0x38]
mov edx, dword [ecx + eax]
mov eax, dword [ebp - 0x14]
mov esi, dword [ebx + 0x14]
movzx ecx, ax
mov al, byte [ebx + 0x44]
mov word [ebx + 0x46], cx
cmp al, 0x13
jge 0x4e6f68
and byte [ebx + 1], 0xf9
xor edi, edi
movsx eax, al
mov word [ebx + 0x32], di
lea edi, [ebx + 0x74]
bswap edx
mov word [ebx + eax*2 + 0x48], cx
movsx ecx, byte [ebx + 0x44]
mov eax, dword [edi]
mov dword [ebx + ecx*4 + 0x78], eax
xor eax, eax
inc byte [ebx + 0x44]
mov word [ebx + 0x46], ax
movzx eax, byte [ebx + 2]
push eax
push ebx
push edi
push edx
push esi
call fcn.004d14b0
add esp, 0x14
test eax, eax
jne 0x4e7006
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 0x24]
jmp 0x4e6c30
push 0x58efe4
push 0x10fdc
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004b99a0
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or byte [ebx + 1], 2
mov dword [ebx + 0x20], eax
xor eax, eax
mov word [ebx + 0x32], ax
mov eax, dword [ebp + 0x1c]
pop edi
mov dword [ebx + 0x24], ecx
pop esi
mov dword [eax], 0
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0x58efe4
push 0x10e40
jmp 0x4e6fed
mov eax, dword [ebp + 0x1c]
mov word [ebx + 0x46], di
pop edi
mov dword [eax], esi
xor eax, eax
xor ecx, ecx
pop esi
mov word [ebx + 0x32], cx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [eax], 0
xor eax, eax
mov word [ebx + 0x46], di
cmp byte [ecx + 0xb], al
je 0x4e7006
push 0x58efe4
push 0x11047
jmp 0x4e6fed
push ebx
call fcn.004b09e0
mov ebx, dword [ebp + 8]
add esp, 4
mov eax, dword [ebp - 0x20]
xor ecx, ecx
pop edi
pop esi
mov word [ebx + 0x32], cx
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 8]
xor ecx, ecx
pop edi
pop esi
mov eax, 7
mov word [ebx + 0x32], cx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x58efe4
push 0x11027
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004b99a0
add esp, 0x14
mov eax, 0xb
xor ecx, ecx
mov word [ebx + 0x32], cx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret